Home
last modified time | relevance | path

Searched refs:HasInjections (Results 1 – 2 of 2) sorted by relevance

/external/guice/core/test/com/google/inject/
DRequestInjectionTest.java45 HasInjections.staticField = 0; in setUp()
46 HasInjections.staticMethod = null; in setUp()
50 final HasInjections hi = new HasInjections(); in testInjectMembers()
63 assertNull(HasInjections.staticMethod); in testInjectMembers()
64 assertEquals(0, HasInjections.staticField); in testInjectMembers()
73 requestStaticInjection(HasInjections.class); in testInjectStatics()
77 assertEquals("test", HasInjections.staticMethod); in testInjectStatics()
78 assertEquals(5, HasInjections.staticField); in testInjectStatics()
82 final HasInjections hi = new HasInjections(); in testInjectMembersAndStatics()
89 requestStaticInjection(HasInjections.class); in testInjectMembersAndStatics()
[all …]
/external/guice/core/test/com/google/inject/spi/
DInjectionPointTest.java173 Method instanceMethod = HasInjections.class.getMethod("instanceMethod", String.class); in testAddForInstanceMethodsAndFields()
174 Field instanceField = HasInjections.class.getField("instanceField"); in testAddForInstanceMethodsAndFields()
176 TypeLiteral<HasInjections> type = TypeLiteral.get(HasInjections.class); in testAddForInstanceMethodsAndFields()
180 InjectionPoint.forInstanceMethodsAndFields(HasInjections.class)); in testAddForInstanceMethodsAndFields()
184 Method staticMethod = HasInjections.class.getMethod("staticMethod", String.class); in testAddForStaticMethodsAndFields()
185 Field staticField = HasInjections.class.getField("staticField"); in testAddForStaticMethodsAndFields()
188 HasInjections.class); in testAddForStaticMethodsAndFields()
190 new InjectionPoint(TypeLiteral.get(HasInjections.class), staticMethod, false), in testAddForStaticMethodsAndFields()
191 new InjectionPoint(TypeLiteral.get(HasInjections.class), staticField, false)), in testAddForStaticMethodsAndFields()
195 static class HasInjections { class in InjectionPointTest