You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jspwiki.apache.org by ju...@apache.org on 2019/10/12 12:08:45 UTC

[jspwiki] 04/05: example using static method to build TestEngine

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

commit 481877b6f03c675de7772a3629abf517fb6d5acd
Author: juanpablo <ju...@apache.org>
AuthorDate: Sat Oct 12 14:07:36 2019 +0200

    example using static method to build TestEngine
---
 jspwiki-main/src/test/java/org/apache/wiki/ui/PageCommandTest.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/jspwiki-main/src/test/java/org/apache/wiki/ui/PageCommandTest.java b/jspwiki-main/src/test/java/org/apache/wiki/ui/PageCommandTest.java
index 937a3f4..b1ed7d9 100644
--- a/jspwiki-main/src/test/java/org/apache/wiki/ui/PageCommandTest.java
+++ b/jspwiki-main/src/test/java/org/apache/wiki/ui/PageCommandTest.java
@@ -32,12 +32,11 @@ import org.junit.jupiter.api.Test;
 
 public class PageCommandTest {
 
-    TestEngine     testEngine;
+    TestEngine     testEngine = TestEngine.build();
     WikiPage       testPage;
 
     @BeforeEach
     public void setUp() throws Exception {
-        testEngine = new TestEngine();
         testEngine.saveText( "TestPage", "This is a test." );
         testPage = testEngine.getPage( "TestPage" );
     }