@Test public void staticFieldInjectionWithProviders() { assertNotNull(Convertible.staticFieldPlainSeatProvider.get()); assertNotNull(Convertible.staticFieldPlainTireProvider.get()); assertNotNull(Convertible.staticFieldDriversSeatProvider.get()); assertNotNull(Convertible.staticFieldSpareTireProvider.get()); }
@Test public void staticFieldInjectionWithValues() { assertNotNull(Convertible.staticFieldPlainSeat); assertNotNull(Convertible.staticFieldPlainTire); assertNotNull(Convertible.staticFieldDriversSeat); assertNotNull(Convertible.staticFieldSpareTire); }
@Test public void constructorInjectionWithProviders() { Provider<Seat> p1 = getField(car, "constructorPlainSeatProvider"); assertNotNull(p1.get()); Provider<Tire> p2 = getField(car, "constructorPlainTireProvider"); assertNotNull(p2.get()); }
@Test public void fieldInjectionWithProviders() { assertNotNull(car.fieldPlainSeatProvider.get()); assertNotNull(car.fieldPlainTireProvider.get()); }
@Test public void providerReturnedValues() { assertNotNull(car.engineProvider.get()); }
@Test public void fieldsInjected() { assertNotNull(car.cupholder); assertNotNull(car.spareTire); }