| java.lang.Object com.ibm.icu.dev.test.AbstractTestLog com.ibm.icu.dev.test.TestFmwk com.ibm.icu.dev.test.timezone.TimeZoneBoundaryTest
TimeZoneBoundaryTest | public class TimeZoneBoundaryTest extends TestFmwk (Code) | | A test which discovers the boundaries of DST programmatically and verifies
that they are correct.
|
Method Summary | |
public void | TestBoundaries() | public void | TestNewRules() Test new rule formats. | public void | TestStepwise() | void | _testUsingBinarySearch(SimpleTimeZone tz, Date d, long expectedBoundary) | void | findBoundariesStepwise(int year, long interval, TimeZone z, int expectedChanges) Find boundaries by stepping. | void | findDaylightBoundaryUsingDate(Date d, String startMode, long expectedBoundary) Date.toString().substring() Boundary Test
Look for a DST changeover to occur within 6 months of the given Date.
The initial Date.toString() should yield a string containing the
startMode as a SUBSTRING. | void | findDaylightBoundaryUsingTimeZone(Date d, boolean startsInDST, long expectedBoundary) | void | findDaylightBoundaryUsingTimeZone(Date d, boolean startsInDST, long expectedBoundary, TimeZone tz) | public static void | main(String[] args) | void | verifyDST(String tag, Calendar cal, TimeZone time_zone, boolean expUseDaylightTime, boolean expInDaylightTime, int expRawOffset, int expOffset) Given a date, a TimeZone, and expected values for inDaylightTime,
useDaylightTime, zone and DST offset, verify that this is the case. | void | verifyMapping(Calendar cal, int year, int month, int dom, int hour, double epochHours) Check that the given year/month/dom/hour maps to and from the
given epochHours. |
AUSTRALIA_1997_BEG | final static long AUSTRALIA_1997_BEG(Code) | | |
AUSTRALIA_1997_END | final static long AUSTRALIA_1997_END(Code) | | |
INTERVAL | final static long INTERVAL(Code) | | |
MONTH_LENGTH | final static int MONTH_LENGTH(Code) | | |
ONE_DAY | final static long ONE_DAY(Code) | | |
ONE_HOUR | final static int ONE_HOUR(Code) | | |
ONE_MINUTE | final static int ONE_MINUTE(Code) | | |
ONE_SECOND | final static int ONE_SECOND(Code) | | |
ONE_YEAR | final static long ONE_YEAR(Code) | | |
PST_1997_BEG | final static long PST_1997_BEG(Code) | | |
PST_1997_END | final static long PST_1997_END(Code) | | |
SIX_MONTHS | final static long SIX_MONTHS(Code) | | |
TestBoundaries | public void TestBoundaries()(Code) | | |
TestNewRules | public void TestNewRules()(Code) | | Test new rule formats.
|
TestStepwise | public void TestStepwise()(Code) | | |
findBoundariesStepwise | void findBoundariesStepwise(int year, long interval, TimeZone z, int expectedChanges)(Code) | | Find boundaries by stepping.
|
findDaylightBoundaryUsingDate | void findDaylightBoundaryUsingDate(Date d, String startMode, long expectedBoundary)(Code) | | Date.toString().substring() Boundary Test
Look for a DST changeover to occur within 6 months of the given Date.
The initial Date.toString() should yield a string containing the
startMode as a SUBSTRING. The boundary will be tested to be
at the expectedBoundary value.
|
findDaylightBoundaryUsingTimeZone | void findDaylightBoundaryUsingTimeZone(Date d, boolean startsInDST, long expectedBoundary)(Code) | | |
findDaylightBoundaryUsingTimeZone | void findDaylightBoundaryUsingTimeZone(Date d, boolean startsInDST, long expectedBoundary, TimeZone tz)(Code) | | |
verifyDST | void verifyDST(String tag, Calendar cal, TimeZone time_zone, boolean expUseDaylightTime, boolean expInDaylightTime, int expRawOffset, int expOffset)(Code) | | Given a date, a TimeZone, and expected values for inDaylightTime,
useDaylightTime, zone and DST offset, verify that this is the case.
|
verifyMapping | void verifyMapping(Calendar cal, int year, int month, int dom, int hour, double epochHours)(Code) | | Check that the given year/month/dom/hour maps to and from the
given epochHours. This verifies the functioning of the
calendar and time zone in conjunction with one another,
including the calendar time->fields and fields->time and
the time zone getOffset method.
Parameters: epochHours - hours after Jan 1 1970 0:00 GMT. |
Fields inherited from com.ibm.icu.dev.test.TestFmwk | protected TestParams params(Code)(Java Doc)
|
Methods inherited from com.ibm.icu.dev.test.TestFmwk | protected boolean assertEquals(String message, boolean expected, boolean actual)(Code)(Java Doc) protected boolean assertEquals(String message, long expected, long actual)(Code)(Java Doc) protected boolean assertEquals(String message, float expected, float actual, double error)(Code)(Java Doc) protected boolean assertEquals(String message, double expected, double actual, double error)(Code)(Java Doc) protected boolean assertEquals(String message, Object expected, Object actual)(Code)(Java Doc) protected boolean assertFalse(String message, boolean condition)(Code)(Java Doc) protected boolean assertNotEquals(String message, Object expected, Object actual)(Code)(Java Doc) protected boolean assertNotNull(String message, Object actual)(Code)(Java Doc) protected boolean assertNotSame(String message, Object expected, Object actual)(Code)(Java Doc) protected boolean assertNull(String message, Object actual)(Code)(Java Doc) protected boolean assertSame(String message, Object expected, Object actual)(Code)(Java Doc) protected boolean assertTrue(String message, boolean condition)(Code)(Java Doc) protected int checkArray(String msg, String array, String expected)(Code)(Java Doc) protected int checkArray(String msg, Locale array, String expected)(Code)(Java Doc) protected int checkArray(String msg, ULocale array, String expected)(Code)(Java Doc) protected Random createRandom()(Code)(Java Doc) protected void fail(String message)(Code)(Java Doc) protected static synchronized java.util.Date getDate(int year, int month, int dom)(Code)(Java Doc) protected String getDescription()(Code)(Java Doc) protected int getErrorCount()(Code)(Java Doc) public PrintWriter getErrorLogPrintWriter()(Code)(Java Doc) public int getInclusion()(Code)(Java Doc) public PrintWriter getLogPrintWriter()(Code)(Java Doc) protected String getMethodDescription(String name)(Code)(Java Doc) protected TestFmwk getSubtest(String prefix) throws TestFmwkException(Code)(Java Doc) protected Target getTargets(String targetName)(Code)(Java Doc) public String getTranslitTestFilter()(Code)(Java Doc) protected void handleException(Throwable e)(Code)(Java Doc) public static String hex(char[] s)(Code)(Java Doc) public static String hex(byte[] s)(Code)(Java Doc) public static String hex(char ch)(Code)(Java Doc) public static String hex(int ch)(Code)(Java Doc) public static String hex(String s)(Code)(Java Doc) public static String hex(StringBuffer s)(Code)(Java Doc) protected void init() throws Exception(Code)(Java Doc) public boolean isDateAtLeast(int year, int month, int day)(Code)(Java Doc) public boolean isMemTracking()(Code)(Java Doc) public boolean isModularBuild()(Code)(Java Doc) public boolean isQuick()(Code)(Java Doc) public boolean isTiming()(Code)(Java Doc) public boolean isVerbose()(Code)(Java Doc) public void msg(String message, int level, boolean incCount, boolean newln)(Code)(Java Doc) public boolean noData()(Code)(Java Doc) public static String prettify(String s)(Code)(Java Doc) public static String prettify(StringBuffer s)(Code)(Java Doc) public Target resolveTarget(TestParams params)(Code)(Java Doc) public Target resolveTarget(TestParams params, String targetPath)(Code)(Java Doc) public void run(String[] args)(Code)(Java Doc) public int run(String[] args, PrintWriter log)(Code)(Java Doc) public int runTests(TestParams params, String[] tests)(Code)(Java Doc) protected TimeZone safeGetTimeZone(String id)(Code)(Java Doc) public void usage()(Code)(Java Doc) public static void usage(PrintWriter pw, String className)(Code)(Java Doc) protected boolean validate()(Code)(Java Doc) protected boolean validateMethod(String name)(Code)(Java Doc)
|
Fields inherited from com.ibm.icu.dev.test.AbstractTestLog | public static boolean dontSkipForVersion(Code)(Java Doc)
|
|
|