| com.ibm.icu.dev.test.TestFmwk com.ibm.richtext.test.unit.TestAttributeMap
Method Summary | |
void | _testIntersectWith(AttributeMap map, AttributeSet intersect) | void | _testModifiers(AttributeMap map) Invoke modifiers on map. | void | _testRemoveAttributes(AttributeMap map, AttributeSet remove) Ensure that map.removeAttributes(remove) is equivalent to calling
map.removeAttribute on remove's elements. | void | _testUnionWith(AttributeMap map, AttributeMap addMap) Ensure that map.addAttributes(addMap) is equivalent to calling
map.add on all of addMap's entries. | void | _testViews(AttributeMap map) Ensure that:
map, map.keySet(), and map.entrySet() are the same size;
map.containsKey() is true for every key in keySet();
map.containsValue() is true for every value in values;
every entry key is in keySet, every entry value is in map.values();
map.get() is consistent with entry's key, value;
sum of hashcodes of entries equals map.hashCode(). | void | easyTests() Look for correct behavior in obvious cases. | public static void | main(String[] args) | public void | test() Run tests on AttributeMap. |
TestAttributeMap | public TestAttributeMap()(Code) | | |
_testIntersectWith | void _testIntersectWith(AttributeMap map, AttributeSet intersect)(Code) | | Ensure that map.intersectWith(intersect) is equivalent to
map.removeAttributes(map.keySet() - intersect);
|
_testModifiers | void _testModifiers(AttributeMap map)(Code) | | Invoke modifiers on map. All should throw
UnsupportedOperationException, and leave map unmodified.
|
_testRemoveAttributes | void _testRemoveAttributes(AttributeMap map, AttributeSet remove)(Code) | | Ensure that map.removeAttributes(remove) is equivalent to calling
map.removeAttribute on remove's elements.
|
_testUnionWith | void _testUnionWith(AttributeMap map, AttributeMap addMap)(Code) | | Ensure that map.addAttributes(addMap) is equivalent to calling
map.add on all of addMap's entries.
|
_testViews | void _testViews(AttributeMap map)(Code) | | Ensure that:
map, map.keySet(), and map.entrySet() are the same size;
map.containsKey() is true for every key in keySet();
map.containsValue() is true for every value in values;
every entry key is in keySet, every entry value is in map.values();
map.get() is consistent with entry's key, value;
sum of hashcodes of entries equals map.hashCode().
|
easyTests | void easyTests()(Code) | | Look for correct behavior in obvious cases.
|
test | public void test()(Code) | | Run tests on AttributeMap. If a test fails an exception will propogate out
of this method.
|
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)
|
|
|