Methods Summary |
---|
public void | setUp()
aor = new UTObjectRenderer("A");
bor = new UTObjectRenderer("B");
xor = new UTObjectRenderer("X");
yor = new UTObjectRenderer("Y");
oor = new UTObjectRenderer("Object");
nor = new UTObjectRenderer("Number");
ior = new UTObjectRenderer("Integer");
cor = new UTObjectRenderer("Comparable");
sor = new UTObjectRenderer("Serializable");
|
public static junit.framework.Test | suite()
TestSuite suite = new TestSuite();
suite.addTest(new ORTestCase("test1"));
suite.addTest(new ORTestCase("test2"));
suite.addTest(new ORTestCase("test3"));
suite.addTest(new ORTestCase("test4"));
suite.addTest(new ORTestCase("test5"));
suite.addTest(new ORTestCase("test6"));
suite.addTest(new ORTestCase("test7"));
suite.addTest(new ORTestCase("test8"));
suite.addTest(new ORTestCase("test9"));
suite.addTest(new ORTestCase("test10"));
return suite;
|
public void | test1()
RendererMap map = new RendererMap();
ObjectRenderer dr = map.getDefaultRenderer();
ObjectRenderer r = map.get(Integer.class);
assertEquals(r, dr);
|
public void | test10()
RendererMap map = new RendererMap();
map.put(X.class, xor);
ObjectRenderer r = map.get(B.class);
assertEquals(r, xor);
|
public void | test2()
RendererMap map = new RendererMap();
map.put(Integer.class, ior);
ObjectRenderer r = map.get(Integer.class);
assertEquals(r, ior);
|
public void | test3()
RendererMap map = new RendererMap();
map.put(Number.class, ior);
ObjectRenderer r = map.get(Integer.class);
assertEquals(r, ior);
|
public void | test4()
RendererMap map = new RendererMap();
map.put(Object.class, oor);
ObjectRenderer r = map.get(Integer.class);
assertEquals(r, oor);
|
public void | test5()
RendererMap map = new RendererMap();
map.put(Object.class, oor);
map.put(Number.class, nor);
map.put(Integer.class, ior);
ObjectRenderer r = map.get(Integer.class);
assertEquals(r, ior);
|
public void | test6()
RendererMap map = new RendererMap();
map.put(Object.class, oor);
map.put(Number.class, nor);
ObjectRenderer r = map.get(Integer.class);
assertEquals(r, nor);
|
public void | test7()
RendererMap map = new RendererMap();
Class comparable = null;
try {
comparable = getClass().forName("java.lang.Comparable");
} catch(Exception ex) {
// likely JDK 1.1
return;
}
map.put(comparable, cor);
ObjectRenderer r = map.get(Integer.class);
assertEquals(r, cor);
|
public void | test8()
RendererMap map = new RendererMap();
map.put(Serializable.class, sor);
ObjectRenderer r = map.get(Integer.class);
assertEquals(r, sor);
|
public void | test9()
RendererMap map = new RendererMap();
map.put(Y.class, yor);
ObjectRenderer r = map.get(B.class);
assertEquals(r, yor);
|