101112131415161718
public class SucoFactoryTests { @Test public void shouldHaveDefaultScopes() { final Container container = SucoFactory.create(); assertNotNull(container.getInstance(NoDecoration.class)); assertNotNull(container.getInstance(Singleton.class)); }
111213141516171819
55565758596061626364
} } @Test public void theTest() { final Container container = SucoFactory.create(); new ABModule().onInstall(container); final ClassA instanceA = container.getInstance(ClassA.class); assertTrue(instanceA.isBCreated()); }
57585960616263646566