|
@@ -13,6 +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.extension.ExtendWith;
|
|
|
import org.springframework.test.context.ContextConfiguration;
|
|
|
import org.springframework.test.context.junit.jupiter.SpringExtension;
|
|
@@ -56,6 +57,7 @@ public class AbsoluteConfigPathELSpringTest extends BaseTest {
|
|
|
}
|
|
|
|
|
|
@Test
|
|
|
+ @DisabledIf("isWindows")
|
|
|
public void testAbsPath() throws Exception{
|
|
|
Assertions.assertTrue(() -> {
|
|
|
LiteflowConfig config = LiteflowConfigGetter.get();
|
|
@@ -65,6 +67,18 @@ public class AbsoluteConfigPathELSpringTest extends BaseTest {
|
|
|
});
|
|
|
}
|
|
|
|
|
|
+ public static boolean isWindows() {
|
|
|
+ try {
|
|
|
+ String osName = System.getProperty("os.name");
|
|
|
+ if (osName.isEmpty()) return false;
|
|
|
+ else {
|
|
|
+ return osName.contains("windows");
|
|
|
+ }
|
|
|
+ } catch (Exception e) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
@BeforeAll
|
|
|
public static void createFiles() {
|
|
|
rootDir = FileUtil.getAbsolutePath(ResourceUtil.getResource("").getPath());
|