| java.lang.Object com.ibm.icu.dev.test.AbstractTestLog com.ibm.icu.dev.test.TestFmwk com.ibm.icu.dev.test.ModuleTest
All known Subclasses: com.ibm.icu.dev.test.sample.ModuleTestSample, com.ibm.icu.dev.test.charset.TestConversion, com.ibm.icu.dev.test.collator.CollationTest,
ModuleTest | abstract public class ModuleTest extends TestFmwk (Code) | | Ray: An adapter class for TestDataMoule to make it like TestFmwk
A convenience extension of TestFmwk for use by data module-driven tests.
Tests can implement this if they make extensive use of information in a
TestDataModule.
Subclasses can allow for test methods that don't use data from the modeul by
overriding validateMethod to return true for these methods. Tests are also
free to instantiate their own modules and run from them, though care should
be taken not to interfere with the methods in this class.
See CollationTest for an example.
|
Field Summary | |
protected TestData | t |
Method Summary | |
protected String | getDescription() Override of TestFmwk method to get the test suite description from the
DESCRIPTION field of the module info. | protected String | getMethodDescription(String methodName) Override of TestFmwk method to get the test method description from the
DESCRIPTION field of the test info. | protected Target | getTargets(String targetName) | public void | msg(String message, int level, boolean incCount, boolean newln) | protected boolean | openTestData(String name) Open the test data in the module with the given name, and return true if
success. | abstract protected void | processModules() | protected boolean | validate() TestFmwk calls this before trying to run a suite of tests. | protected boolean | validateMethod(String methodName) TestFmwk calls this before trying to invoke a test method. |
getDescription | protected String getDescription()(Code) | | Override of TestFmwk method to get the test suite description from the
DESCRIPTION field of the module info.
|
getMethodDescription | protected String getMethodDescription(String methodName)(Code) | | Override of TestFmwk method to get the test method description from the
DESCRIPTION field of the test info.
|
getTargets | protected Target getTargets(String targetName)(Code) | | |
msg | public void msg(String message, int level, boolean incCount, boolean newln)(Code) | | |
openTestData | protected boolean openTestData(String name)(Code) | | Open the test data in the module with the given name, and return true if
success. The current test is reset.
throws: DataModuleFormatError - |
processModules | abstract protected void processModules()(Code) | | |
validate | protected boolean validate()(Code) | | TestFmwk calls this before trying to run a suite of tests. The test suite
if valid if a module whose name is the name of this class + "Data" can be
opened. Subclasses can override this if there are different or additional
data required.
|
validateMethod | protected boolean validateMethod(String methodName)(Code) | | TestFmwk calls this before trying to invoke a test method. The method is
valid if there is test data with the name of this method in the module.
Subclasses can override this to allow for tests that do not require test
data from the module, or if there are different or additional data
required.
|
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)
|
|
|