| 18 | @Component class SuperEngine extends Engine {} |
| 19 | |
| 20 | @Component |
| 21 | class Car { |
| 22 | @Value("red") String color; |
| 23 | @Value("100") int oil; |
| 24 | @Autowired Engine engine; |
| 25 | @Autowired Door[] doors; |
| 26 | |
| 27 | @Override |
| 28 | public String toString() { |
| 29 | return "Car{" + |
| 30 | "color='" + color + '\'' + |
| 31 | ", oil=" + oil + |
| 32 | ", engine=" + engine + |
| 33 | ", doors=" + Arrays.toString(doors) + |
| 34 | '}'; |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | public class ApplicationContextTest { |
| 39 | public static void main(String[] args) { |
nothing calls this directly
no outgoing calls
no test coverage detected