MentaContainer

Compare Revisions

Ignore whitespace Rev 43 → Rev 44

/trunk/src/test/java/org/mentacontainer/impl/MentaContainerTest.java
69,26 → 69,6
Assert.assertTrue(s1.equals(s2));
}
 
@Test(expected = RuntimeException.class)
public void testAddingComponentTwice() {
 
Container c = new MentaContainer();
 
c.ioc("myStr", String.class);
c.ioc("myStr", String.class);
}
 
@Test(expected = RuntimeException.class)
public void testSettingWiringTwice() {
 
Container c = new MentaContainer();
 
c.autowire("myThread", Runnable.class);
 
c.autowire("myThread", Runnable.class);
}
public static interface MyDAO {
public Object getSomething();