You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jspwiki.apache.org by br...@apache.org on 2019/05/01 22:11:17 UTC

[jspwiki] branch master updated: 2.11.0-M4-git-12 [JSPWIKI-1104] InsertPagePlugin update tests

This is an automated email from the ASF dual-hosted git repository.

brushed 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 9239518  2.11.0-M4-git-12  [JSPWIKI-1104]  InsertPagePlugin update tests
9239518 is described below

commit 9239518ef98626cf33f5bfb200c12f0249c63d96
Author: brushed <di...@gmail.com>
AuthorDate: Thu May 2 00:03:43 2019 +0200

    2.11.0-M4-git-12  [JSPWIKI-1104]  InsertPagePlugin update tests
---
 .../src/test/java/org/apache/wiki/plugin/InsertPageTest.java      | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/jspwiki-main/src/test/java/org/apache/wiki/plugin/InsertPageTest.java b/jspwiki-main/src/test/java/org/apache/wiki/plugin/InsertPageTest.java
index 62b287e..5d887cf 100644
--- a/jspwiki-main/src/test/java/org/apache/wiki/plugin/InsertPageTest.java
+++ b/jspwiki-main/src/test/java/org/apache/wiki/plugin/InsertPageTest.java
@@ -86,7 +86,7 @@ public class InsertPageTest
 
         Assertions.assertTrue( testEngine.getHTML("ThisPage").indexOf("Circular reference") == -1, "got circ ref" );
 
-        Assertions.assertEquals( "<div style=\"\">foo\n</div> <div style=\"\">foo\n</div>\n", testEngine.getHTML("ThisPage"), "found != 2" );
+        Assertions.assertEquals( "<div class=\"inserted-page \" >foo\n</div> <div class=\"inserted-page \" >foo\n</div>\n", testEngine.getHTML("ThisPage"), "found != 2" );
 
     }
 
@@ -101,7 +101,7 @@ public class InsertPageTest
 
         Assertions.assertTrue( testEngine.getHTML("ThisPage").indexOf("Circular reference") == -1, "got circ ref" );
 
-        Assertions.assertEquals( "<div style=\"\">foo\n</div>\n", testEngine.getHTML("ThisPage"), "found != 1" );
+        Assertions.assertEquals( "<div class=\"inserted-page \" >foo\n</div>\n", testEngine.getHTML("ThisPage"), "found != 1" );
     }
 
 
@@ -115,7 +115,7 @@ public class InsertPageTest
         testEngine.saveText( "ThisPage", "[{InsertPage page='Test Page'}]" );
         testEngine.saveText( "Test Page", "foo[{ALLOW view Anonymous}]" );
 
-        Assertions.assertEquals( "<div style=\"\">foo\n</div>\n", testEngine.getHTML( "ThisPage" ), "found != 1" );
+        Assertions.assertEquals( "<div class=\"inserted-page \" >foo\n</div>\n", testEngine.getHTML( "ThisPage" ), "found != 1" );
     }
 
     /**
@@ -129,7 +129,7 @@ public class InsertPageTest
         testEngine.saveText( "ThisPage", "[{InsertPage page='Test Page'}]" );
         testEngine.saveText( "TestPage", "foo[{ALLOW view Anonymous}]" );
 
-        Assertions.assertEquals( "<div style=\"\">foo\n</div>\n", testEngine.getHTML( "ThisPage" ), "found != 1" );
+        Assertions.assertEquals( "<div class=\"inserted-page \" >foo\n</div>\n", testEngine.getHTML( "ThisPage" ), "found != 1" );
     }
 
 }