Exemplo n.º 1
0
 @Test
 public void fieldInjectionWithValues() {
   assertFalse(car.fieldPlainSeat instanceof DriversSeat);
   assertFalse(car.fieldPlainTire instanceof SpareTire);
 }
Exemplo n.º 2
0
 @Test
 public void constructorInjectionWithValues() {
   assertFalse(getField(car, "constructorPlainSeat") instanceof DriversSeat);
   assertFalse(getField(car, "constructorPlainTire") instanceof SpareTire);
 }