|
|
@ -34,9 +34,8 @@ public class SwitchTaskUtilsTest { |
|
|
|
String content = "${test}==1"; |
|
|
|
String content = "${test}==1"; |
|
|
|
Map<String, Property> globalParams = new HashMap<>(); |
|
|
|
Map<String, Property> globalParams = new HashMap<>(); |
|
|
|
Map<String, Property> varParams = new HashMap<>(); |
|
|
|
Map<String, Property> varParams = new HashMap<>(); |
|
|
|
Assertions.assertThrowsExactly(IllegalArgumentException.class, () -> { |
|
|
|
Assertions.assertDoesNotThrow( |
|
|
|
SwitchTaskUtils.generateContentWithTaskParams(content, globalParams, varParams); |
|
|
|
() -> SwitchTaskUtils.generateContentWithTaskParams(content, globalParams, varParams)); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
globalParams.put("test", new Property("test", Direct.IN, DataType.INTEGER, "1")); |
|
|
|
globalParams.put("test", new Property("test", Direct.IN, DataType.INTEGER, "1")); |
|
|
|
String result = SwitchTaskUtils.generateContentWithTaskParams(content, globalParams, varParams); |
|
|
|
String result = SwitchTaskUtils.generateContentWithTaskParams(content, globalParams, varParams); |
|
|
|