MentaContainer

Compare Revisions

Ignore whitespace Rev 101 → Rev 102

/trunk/src/test/java/org/mentacontainer/impl/ClassFactoryTest.java
3,7 → 3,6
import junit.framework.Assert;
 
import org.junit.Test;
import org.mentacontainer.Container;
import org.mentacontainer.Factory;
 
public class ClassFactoryTest {
270,4 → 269,22
Assert.assertEquals(new Long(20), o.l1);
Assert.assertEquals(20, o.l2);
}
private static class TestObj22 {
public TestObj22() { }
}
@Test
public void testOnlyOneZeroArgConstructor() {
MentaContainer container = new MentaContainer();
Factory f = new ClassFactory(container, TestObj22.class);
TestObj22 o = f.getInstance();
Assert.assertNotNull(o);
}
}