yeg
2026-08-29 317c4c6a45508ab64461c36aad2c93d4a0d3a15a
ruoyi-admin/src/test/java/com/ruoyi/config/DevelopmentCollectorStatusSynchronizerTest.java
@@ -15,9 +15,10 @@
    @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