From 6c25e26f2525ebd3c191d67dd4c12d688cd5a170 Mon Sep 17 00:00:00 2001 From: rain <672378783@qq.com> Date: Sat, 18 May 2024 10:37:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=B5=8B=E8=AF=95=E7=94=A8?= =?UTF-8?q?=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AbsoluteConfigPathELDeclMultiSpringbootTest.java | 6 +++--- .../AbsoluteConfigPathELDeclSpringbootTest.java | 6 +++--- .../test/absoluteConfigPath/AbsoluteConfigPathTest.java | 6 +++--- .../AbsoluteConfigPathELSpringbootTest.java | 6 +++--- .../AbsoluteConfigPathELSpringbootTest.java | 6 +++--- .../absoluteConfigPath/AbsoluteConfigPathELSpringTest.java | 6 +++--- 6 files changed, 18 insertions(+), 18 deletions(-) diff --git a/liteflow-testcase-el/liteflow-testcase-el-declare-multi-springboot/src/test/java/com/yomahub/liteflow/test/absoluteConfigPath/AbsoluteConfigPathELDeclMultiSpringbootTest.java b/liteflow-testcase-el/liteflow-testcase-el-declare-multi-springboot/src/test/java/com/yomahub/liteflow/test/absoluteConfigPath/AbsoluteConfigPathELDeclMultiSpringbootTest.java index 4551da5d8..7600850da 100644 --- a/liteflow-testcase-el/liteflow-testcase-el-declare-multi-springboot/src/test/java/com/yomahub/liteflow/test/absoluteConfigPath/AbsoluteConfigPathELDeclMultiSpringbootTest.java +++ b/liteflow-testcase-el/liteflow-testcase-el-declare-multi-springboot/src/test/java/com/yomahub/liteflow/test/absoluteConfigPath/AbsoluteConfigPathELDeclMultiSpringbootTest.java @@ -13,7 +13,7 @@ import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.condition.DisabledIf; +import org.junit.jupiter.api.condition.EnabledIf; import org.junit.jupiter.api.extension.ExtendWith; import org.springframework.test.context.junit.jupiter.SpringExtension; import org.slf4j.Logger; @@ -65,7 +65,7 @@ public class AbsoluteConfigPathELDeclMultiSpringbootTest extends BaseTest { } @Test - @DisabledIf("isWindows") + @EnabledIf("isWindows") public void testAbsPath() throws Exception{ Assertions.assertTrue(() -> { LiteflowConfig config = LiteflowConfigGetter.get(); @@ -80,7 +80,7 @@ public class AbsoluteConfigPathELDeclMultiSpringbootTest extends BaseTest { String osName = System.getProperty("os.name"); if (osName.isEmpty()) return false; else { - return osName.contains("windows"); + return osName.contains("Windows"); } } catch (Exception e) { return false; diff --git a/liteflow-testcase-el/liteflow-testcase-el-declare-springboot/src/test/java/com/yomahub/liteflow/test/absoluteConfigPath/AbsoluteConfigPathELDeclSpringbootTest.java b/liteflow-testcase-el/liteflow-testcase-el-declare-springboot/src/test/java/com/yomahub/liteflow/test/absoluteConfigPath/AbsoluteConfigPathELDeclSpringbootTest.java index d603e03c3..f4b0650d7 100644 --- a/liteflow-testcase-el/liteflow-testcase-el-declare-springboot/src/test/java/com/yomahub/liteflow/test/absoluteConfigPath/AbsoluteConfigPathELDeclSpringbootTest.java +++ b/liteflow-testcase-el/liteflow-testcase-el-declare-springboot/src/test/java/com/yomahub/liteflow/test/absoluteConfigPath/AbsoluteConfigPathELDeclSpringbootTest.java @@ -15,7 +15,7 @@ import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.condition.DisabledIf; +import org.junit.jupiter.api.condition.EnabledIf; import org.junit.jupiter.api.extension.ExtendWith; import org.springframework.test.context.junit.jupiter.SpringExtension; import org.slf4j.Logger; @@ -67,7 +67,7 @@ public class AbsoluteConfigPathELDeclSpringbootTest extends BaseTest { } @Test - @DisabledIf("isWindows") + @EnabledIf("isWindows") public void testAbsPath() throws Exception{ Assertions.assertTrue(() -> { LiteflowConfig config = LiteflowConfigGetter.get(); @@ -82,7 +82,7 @@ public class AbsoluteConfigPathELDeclSpringbootTest extends BaseTest { String osName = System.getProperty("os.name"); if (osName.isEmpty()) return false; else { - return osName.contains("windows"); + return osName.contains("Windows"); } } catch (Exception e) { return false; diff --git a/liteflow-testcase-el/liteflow-testcase-el-nospring/src/test/java/com/yomahub/liteflow/test/absoluteConfigPath/AbsoluteConfigPathTest.java b/liteflow-testcase-el/liteflow-testcase-el-nospring/src/test/java/com/yomahub/liteflow/test/absoluteConfigPath/AbsoluteConfigPathTest.java index f6709326d..ce14a2cd1 100644 --- a/liteflow-testcase-el/liteflow-testcase-el-nospring/src/test/java/com/yomahub/liteflow/test/absoluteConfigPath/AbsoluteConfigPathTest.java +++ b/liteflow-testcase-el/liteflow-testcase-el-nospring/src/test/java/com/yomahub/liteflow/test/absoluteConfigPath/AbsoluteConfigPathTest.java @@ -14,7 +14,7 @@ import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.condition.DisabledIf; +import org.junit.jupiter.api.condition.EnabledIf; import java.util.Objects; @@ -52,7 +52,7 @@ public class AbsoluteConfigPathTest extends BaseTest { } @Test - @DisabledIf("isWindows") + @EnabledIf("isWindows") public void testAbsPath() throws Exception{ Assertions.assertTrue(() -> { LiteflowConfig config = new LiteflowConfig(); @@ -67,7 +67,7 @@ public class AbsoluteConfigPathTest extends BaseTest { String osName = System.getProperty("os.name"); if (osName.isEmpty()) return false; else { - return osName.contains("windows"); + return osName.contains("Windows"); } } catch (Exception e) { return false; diff --git a/liteflow-testcase-el/liteflow-testcase-el-solon/src/test/java/com/yomahub/liteflow/test/absoluteConfigPath/AbsoluteConfigPathELSpringbootTest.java b/liteflow-testcase-el/liteflow-testcase-el-solon/src/test/java/com/yomahub/liteflow/test/absoluteConfigPath/AbsoluteConfigPathELSpringbootTest.java index a418038f3..a8e85596f 100644 --- a/liteflow-testcase-el/liteflow-testcase-el-solon/src/test/java/com/yomahub/liteflow/test/absoluteConfigPath/AbsoluteConfigPathELSpringbootTest.java +++ b/liteflow-testcase-el/liteflow-testcase-el-solon/src/test/java/com/yomahub/liteflow/test/absoluteConfigPath/AbsoluteConfigPathELSpringbootTest.java @@ -13,7 +13,7 @@ import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.condition.DisabledIf; +import org.junit.jupiter.api.condition.EnabledIf; import org.junit.jupiter.api.extension.ExtendWith; import org.noear.solon.annotation.Inject; import org.noear.solon.test.SolonJUnit5Extension; @@ -58,7 +58,7 @@ public class AbsoluteConfigPathELSpringbootTest extends BaseTest { } @Test - @DisabledIf("isWindows") + @EnabledIf("isWindows") public void testAbsTest() throws Exception { Assertions.assertTrue(() -> { LiteflowConfig config = LiteflowConfigGetter.get(); @@ -73,7 +73,7 @@ public class AbsoluteConfigPathELSpringbootTest extends BaseTest { String osName = System.getProperty("os.name"); if (osName.isEmpty()) return false; else { - return osName.contains("windows"); + return osName.contains("Windows"); } } catch (Exception e) { return false; diff --git a/liteflow-testcase-el/liteflow-testcase-el-springboot/src/test/java/com/yomahub/liteflow/test/absoluteConfigPath/AbsoluteConfigPathELSpringbootTest.java b/liteflow-testcase-el/liteflow-testcase-el-springboot/src/test/java/com/yomahub/liteflow/test/absoluteConfigPath/AbsoluteConfigPathELSpringbootTest.java index b5cb15633..4bf4bd97d 100644 --- a/liteflow-testcase-el/liteflow-testcase-el-springboot/src/test/java/com/yomahub/liteflow/test/absoluteConfigPath/AbsoluteConfigPathELSpringbootTest.java +++ b/liteflow-testcase-el/liteflow-testcase-el-springboot/src/test/java/com/yomahub/liteflow/test/absoluteConfigPath/AbsoluteConfigPathELSpringbootTest.java @@ -13,7 +13,7 @@ import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.condition.DisabledIf; +import org.junit.jupiter.api.condition.EnabledIf; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; @@ -72,7 +72,7 @@ public class AbsoluteConfigPathELSpringbootTest extends BaseTest { } @Test - @DisabledIf("isWindows") + @EnabledIf("isWindows") public void testAbsPath4() throws Exception{ Assertions.assertTrue(() -> { LiteflowConfig config = LiteflowConfigGetter.get(); @@ -87,7 +87,7 @@ public class AbsoluteConfigPathELSpringbootTest extends BaseTest { String osName = System.getProperty("os.name"); if (osName.isEmpty()) return false; else { - return osName.contains("windows"); + return osName.contains("Windows"); } } catch (Exception e) { return false; diff --git a/liteflow-testcase-el/liteflow-testcase-el-springnative/src/test/java/com/yomahub/liteflow/test/absoluteConfigPath/AbsoluteConfigPathELSpringTest.java b/liteflow-testcase-el/liteflow-testcase-el-springnative/src/test/java/com/yomahub/liteflow/test/absoluteConfigPath/AbsoluteConfigPathELSpringTest.java index 097bf03e2..d0b1d143a 100644 --- a/liteflow-testcase-el/liteflow-testcase-el-springnative/src/test/java/com/yomahub/liteflow/test/absoluteConfigPath/AbsoluteConfigPathELSpringTest.java +++ b/liteflow-testcase-el/liteflow-testcase-el-springnative/src/test/java/com/yomahub/liteflow/test/absoluteConfigPath/AbsoluteConfigPathELSpringTest.java @@ -13,7 +13,7 @@ import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.condition.DisabledIf; +import org.junit.jupiter.api.condition.EnabledIf; import org.junit.jupiter.api.extension.ExtendWith; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit.jupiter.SpringExtension; @@ -57,7 +57,7 @@ public class AbsoluteConfigPathELSpringTest extends BaseTest { } @Test - @DisabledIf("isWindows") + @EnabledIf("isWindows") public void testAbsPath() throws Exception{ Assertions.assertTrue(() -> { LiteflowConfig config = LiteflowConfigGetter.get(); @@ -72,7 +72,7 @@ public class AbsoluteConfigPathELSpringTest extends BaseTest { String osName = System.getProperty("os.name"); if (osName.isEmpty()) return false; else { - return osName.contains("windows"); + return osName.contains("Windows"); } } catch (Exception e) { return false;