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