浏览代码

修改monitorFile的测试用例

everywhere.z 2 年之前
父节点
当前提交
f5dcd887cd

+ 2 - 2
liteflow-testcase-el/liteflow-testcase-el-solon/src/test/java/com/yomahub/liteflow/test/monitorFile/MonitorFileELSpringbootTest.java → liteflow-testcase-el/liteflow-testcase-el-solon/src/test/java/com/yomahub/liteflow/test/monitorFile/MonitorFileSpringbootTest.java

@@ -17,14 +17,14 @@ import java.io.File;
 
 @RunWith(SolonJUnit4ClassRunner.class)
 @TestPropertySource("classpath:/monitorFile/application.properties")
-public class MonitorFileELSpringbootTest extends BaseTest {
+public class MonitorFileSpringbootTest extends BaseTest {
 
 	@Inject
 	private FlowExecutor flowExecutor;
 
 	@Test
 	public void testMonitor() throws Exception {
-		String absolutePath = new ClassPathResource("classpath:/monitorFile/flow.el.xml").getAbsolutePath();
+		String absolutePath = new ClassPathResource("classpath:/monitorFile/flow.xml").getAbsolutePath();
 		String content = FileUtil.readUtf8String(absolutePath);
 		String newContent = content.replace("THEN(a, b, c);", "THEN(a, c, b);");
 		FileUtil.writeString(newContent, new File(absolutePath), CharsetUtil.CHARSET_UTF_8);

+ 1 - 1
liteflow-testcase-el/liteflow-testcase-el-solon/src/test/resources/monitorFile/application.properties

@@ -1,2 +1,2 @@
-liteflow.rule-source=monitorFile/flow.el.xml
+liteflow.rule-source=monitorFile/flow.xml
 liteflow.enable-monitor-file=true

+ 0 - 0
liteflow-testcase-el/liteflow-testcase-el-solon/src/test/resources/monitorFile/flow.el.xml → liteflow-testcase-el/liteflow-testcase-el-solon/src/test/resources/monitorFile/flow.xml


+ 1 - 1
liteflow-testcase-el/liteflow-testcase-el-springboot/src/test/java/com/yomahub/liteflow/test/monitorFile/MonitorFileELSpringbootTest.java

@@ -30,7 +30,7 @@ public class MonitorFileELSpringbootTest extends BaseTest {
 
 	@Test
 	public void testMonitor() throws Exception {
-		String absolutePath = new ClassPathResource("classpath:/monitorFile/flow.xml").getAbsolutePath();
+		String absolutePath = new ClassPathResource("classpath:/monitorFile/flow.el.xml").getAbsolutePath();
 		String content = FileUtil.readUtf8String(absolutePath);
 		String newContent = content.replace("THEN(a, b, c);", "THEN(a, c, b);");
 		FileUtil.writeString(newContent, new File(absolutePath), CharsetUtil.CHARSET_UTF_8);

+ 1 - 1
pom.xml

@@ -39,7 +39,7 @@
 	</scm>
 
 	<properties>
-		<revision>2.10.1</revision>
+		<revision>2.10.2</revision>
 		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
 		<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
 		<maven.compiler.source>8</maven.compiler.source>