FileDocCategorySizeDatePackage
DateFormatTest.javaAPI DocAndroid 5.1 API1413Thu Mar 12 22:22:12 GMT 2015android.text.format

DateFormatTest

public class DateFormatTest extends TestCase

Fields Summary
Constructors Summary
Methods Summary
public voidtestHasDesignator()

        assertTrue(DateFormat.hasDesignator("hh:mm:ss", DateFormat.MINUTE));
        assertTrue(DateFormat.hasDesignator("myyyy", DateFormat.MINUTE));
        assertTrue(DateFormat.hasDesignator("mmm", DateFormat.MINUTE));

        assertFalse(DateFormat.hasDesignator("hh:MM:ss", DateFormat.MINUTE));
    
public voidtestHasDesignatorEscaped()

        assertTrue(DateFormat.hasDesignator("hh:mm 'LOL'", DateFormat.MINUTE));

        assertFalse(DateFormat.hasDesignator("hh:mm 'yyyy'", DateFormat.YEAR));