| com.ibm.icu.dev.test.TestFmwk com.ibm.icu.dev.test.util.ULocaleTest
Inner Class :interface ServiceFacade | |
Inner Class :interface Subobject | |
Inner Class :interface Registrar | |
Method Summary | |
public void | TestAcceptLanguage() | public void | TestAcceptLanguage2() | public void | TestBamBm() | public void | TestBasicGetters() | public void | TestBreakIterator() | public void | TestCalendar() | public void | TestCanonicalization() | public void | TestCollator() | public void | TestCoverage() | public void | TestDateFormat() | public void | TestDisplayKeyword() | public void | TestDisplayNames() | public void | TestGetAvailable() | public void | TestJB3962() | public void | TestNumberFormat() | public void | TestObsoleteNames() | public void | TestPrefixes() | public void | TestSetULocaleKeywords() | void | checkObject(String requestedLocale, Object obj, String expReqValid, String expValidActual) Use reflection to call getLocale() on the given object to
determine both the valid and the actual locale. | void | checkService(String requestedLocale, ServiceFacade svc) Verify the correct getLocale() behavior for the given service.
Parameters: requestedLocale - the locale to request. | void | checkService(String requestedLocale, ServiceFacade svc, Subobject sub, Registrar reg) Verify the correct getLocale() behavior for the given service.
Parameters: requestedLocale - the locale to request. | void | checklocs(String label, String req, Locale validLoc, Locale actualLoc, String expReqValid, String expValidActual) Check the relationship between requested locales, and report problems. | static int | loccmp(String string, String prefix) Compare two locale IDs. | public static void | main(String[] args) |
TestAcceptLanguage | public void TestAcceptLanguage()(Code) | | |
TestAcceptLanguage2 | public void TestAcceptLanguage2()(Code) | | |
TestBamBm | public void TestBamBm()(Code) | | |
TestBasicGetters | public void TestBasicGetters()(Code) | | |
TestBreakIterator | public void TestBreakIterator()(Code) | | |
TestCalendar | public void TestCalendar()(Code) | | |
TestCanonicalization | public void TestCanonicalization()(Code) | | |
TestCollator | public void TestCollator()(Code) | | |
TestCoverage | public void TestCoverage()(Code) | | |
TestDateFormat | public void TestDateFormat()(Code) | | |
TestDisplayKeyword | public void TestDisplayKeyword()(Code) | | |
TestDisplayNames | public void TestDisplayNames()(Code) | | |
TestGetAvailable | public void TestGetAvailable()(Code) | | |
TestJB3962 | public void TestJB3962()(Code) | | |
TestNumberFormat | public void TestNumberFormat()(Code) | | |
TestObsoleteNames | public void TestObsoleteNames()(Code) | | |
TestPrefixes | public void TestPrefixes()(Code) | | |
TestSetULocaleKeywords | public void TestSetULocaleKeywords()(Code) | | |
checkObject | void checkObject(String requestedLocale, Object obj, String expReqValid, String expValidActual)(Code) | | Use reflection to call getLocale() on the given object to
determine both the valid and the actual locale. Verify these
for correctness.
|
checkService | void checkService(String requestedLocale, ServiceFacade svc)(Code) | | Verify the correct getLocale() behavior for the given service.
Parameters: requestedLocale - the locale to request. This MUST BEFAKE. In other words, it should be something likeen_US_FAKEVARIANT so this method can verify correct fallbackbehavior. Parameters: svc - a factory object that can create the object to betested. This isn't necessary here (one could just pass in theobject) but is required for the overload of this method thattakes a Registrar. |
checkService | void checkService(String requestedLocale, ServiceFacade svc, Subobject sub, Registrar reg)(Code) | | Verify the correct getLocale() behavior for the given service.
Parameters: requestedLocale - the locale to request. This MUST BEFAKE. In other words, it should be something likeen_US_FAKEVARIANT so this method can verify correct fallbackbehavior. Parameters: svc - a factory object that can create the object to betested. Parameters: sub - an object that can be used to retrieve a subobjectwhich should also be tested. May be null. Parameters: reg - an object that supplies the registration andunregistration functionality to be tested. May be null. |
checklocs | void checklocs(String label, String req, Locale validLoc, Locale actualLoc, String expReqValid, String expValidActual)(Code) | | Check the relationship between requested locales, and report problems.
The caller specifies the expected relationships between requested
and valid (expReqValid) and between valid and actual (expValidActual).
Possible values are:
"gt" strictly greater than, e.g., en_US > en
"ge" greater or equal, e.g., en >= en
"eq" equal, e.g., en == en
|
loccmp | static int loccmp(String string, String prefix)(Code) | | Compare two locale IDs. If they are equal, return 0. If `string'
starts with `prefix' plus an additional element, that is, string ==
prefix + '_' + x, then return 1. Otherwise return a value < 0.
|
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)
|
|
|