| | |
| | | void productionConstructorIsExplicitlyAutowired() |
| | | { |
| | | var constructors = DevelopmentCollectorStatusSynchronizer.class.getDeclaredConstructors(); |
| | | assertEquals(1, constructors.length); |
| | | assertTrue(constructors[0].isAnnotationPresent(Autowired.class)); |
| | | assertEquals(3, constructors[0].getParameterCount()); |
| | | assertEquals(2, constructors.length); |
| | | var production = java.util.Arrays.stream(constructors) |
| | | .filter(item -> item.isAnnotationPresent(Autowired.class)).findFirst().orElseThrow(); |
| | | assertEquals(4, production.getParameterCount()); |
| | | } |
| | | @Test |
| | | void synchronizesOnlyConfiguredCollectorsWithoutRegisteringThem() throws Exception |