This is an automated email from the ASF dual-hosted git repository.
juanpablo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jspwiki.git
The following commit(s) were added to refs/heads/master by this push:
new ce22e952b ensure engine clean up after tests' execution
ce22e952b is described below
commit ce22e952bfdf61ec9b1e8781b9a5c51f937cc2a2
Author: Juan Pablo Santos RodrÃguez <[email protected]>
AuthorDate: Sun May 1 15:32:18 2022 +0200
ensure engine clean up after tests' execution
---
.../src/test/java/org/apache/wiki/plugin/WeblogPluginTest.java | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git
a/jspwiki-main/src/test/java/org/apache/wiki/plugin/WeblogPluginTest.java
b/jspwiki-main/src/test/java/org/apache/wiki/plugin/WeblogPluginTest.java
index b8e00c6d3..353c2a6d0 100644
--- a/jspwiki-main/src/test/java/org/apache/wiki/plugin/WeblogPluginTest.java
+++ b/jspwiki-main/src/test/java/org/apache/wiki/plugin/WeblogPluginTest.java
@@ -2,7 +2,6 @@ package org.apache.wiki.plugin;
import org.apache.wiki.TestEngine;
import org.apache.wiki.api.exceptions.WikiException;
-import org.apache.wiki.pages.PageManager;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
@@ -10,11 +9,11 @@ import org.junit.jupiter.api.Test;
public class WeblogPluginTest {
- static TestEngine testEngine = TestEngine.build();
+ TestEngine testEngine = TestEngine.build();
@AfterEach
public void tearDown() throws Exception {
- testEngine.getManager( PageManager.class ).deletePage( "Test" );
+ testEngine.stop();
}
@Test