修改monitorFile的测试用例

This commit is contained in:
everywhere.z
2023-03-30 00:09:32 +08:00
parent d62611e90b
commit f5dcd887cd
5 changed files with 5 additions and 5 deletions

View File

@@ -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);

View File

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

View File

@@ -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);

View File

@@ -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>