mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-14 12:12:08 +08:00
修改monitorFile的测试用例
This commit is contained in:
@@ -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,2 +1,2 @@
|
||||
liteflow.rule-source=monitorFile/flow.el.xml
|
||||
liteflow.rule-source=monitorFile/flow.xml
|
||||
liteflow.enable-monitor-file=true
|
||||
@@ -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);
|
||||
|
||||
2
pom.xml
2
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>
|
||||
|
||||
Reference in New Issue
Block a user