112113114115116117118119120
} }; DefaultInjector injector = new DefaultInjector(module); MockInterface4 service = injector.getInstance(MockInterface4.class); assertNotNull(service); assertEquals("constructor_MyName", service.getName()); }
133134135136137138139140141
} }; DefaultInjector injector = new DefaultInjector(module); MockInterface4 service = injector.getInstance(MockInterface4.class); assertNotNull(service); assertEquals("constructor_alt2", service.getName()); }
155156157158159160161162163
} }; DefaultInjector injector = new DefaultInjector(module); MockInterface4 service = injector.getInstance(MockInterface4.class); assertNotNull(service); assertEquals("constructor_alt2_XName", service.getName()); }