565758596061626364
} }; DefaultInjector injector = new DefaultInjector(module); MockInterface2 service = injector.getInstance(MockInterface2.class); assertNotNull(service); assertEquals("altered_MyName", service.getAlteredName()); }
777879808182838485
} }; DefaultInjector injector = new DefaultInjector(module); MockInterface2 service = injector.getInstance(MockInterface2.class); assertNotNull(service); assertEquals("altered_alt", service.getAlteredName()); }
9596979899100101102103
} }; DefaultInjector injector = new DefaultInjector(module); MockInterface2 service = injector.getInstance(MockInterface2.class); assertNotNull(service); assertEquals("altered_MyName:XName", service.getAlteredName()); }
173174175176177178179180
} }; DefaultInjector injector = new DefaultInjector(module); MockInterface2 service = injector.getInstance(MockInterface2.class); assertEquals("altered_MyName", service.getAlteredName()); }