MentaContainer

Compare Revisions

Ignore whitespace Rev 40 → Rev 41

/trunk/src/test/java/org/mentacontainer/impl/MentaContainerTest.java
16,9 → 16,9
 
Assert.assertEquals("", c.get("myStr"));
 
String s1 = (String) c.get("myStr");
String s1 = c.get("myStr");
 
String s2 = (String) c.get("myStr");
String s2 = c.get("myStr");
 
Assert.assertTrue(s1 != s2);
 
34,9 → 34,9
 
Assert.assertEquals("hello", c.get("myStr"));
 
String s1 = (String) c.get("myStr");
String s1 = c.get("myStr");
 
String s2 = (String) c.get("myStr");
String s2 = c.get("myStr");
 
Assert.assertTrue(s1 != s2);
 
44,7 → 44,7
 
c.ioc("anotherStr", String.class).addInitValue("hi");
 
String s3 = (String) c.get("anotherStr");
String s3 = c.get("anotherStr");
 
Assert.assertTrue(s1 != s3);
 
60,9 → 60,9
 
Assert.assertEquals("hello", c.get("myStr"));
 
String s1 = (String) c.get("myStr");
String s1 = c.get("myStr");
 
String s2 = (String) c.get("myStr");
String s2 = c.get("myStr");
 
Assert.assertTrue(s1 == s2);
 
181,7 → 181,7
Container c = getConfiguredContainer();
MyDAO myDAO = (MyDAO) c.get("myDAO");
MyDAO myDAO = c.get("myDAO");
// check implementation...