You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by da...@apache.org on 2007/11/26 15:21:58 UTC

svn commit: r598286 - /wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/util/tester/WicketTester.java

Author: dashorst
Date: Mon Nov 26 06:21:57 2007
New Revision: 598286

URL: http://svn.apache.org/viewvc?rev=598286&view=rev
Log:
Use the compare functionality of JUnit instead of the assert true which doesn't give any contextual information on what is different.

Modified:
    wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/util/tester/WicketTester.java

Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/util/tester/WicketTester.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/util/tester/WicketTester.java?rev=598286&r1=598285&r2=598286&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/util/tester/WicketTester.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/util/tester/WicketTester.java Mon Nov 26 06:21:57 2007
@@ -554,7 +554,7 @@
 	{
 		// Validate the document
 		String document = getServletResponse().getDocument();
-		Assert.assertTrue(document.equals(expectedDocument));
+		Assert.assertEquals(expectedDocument, document);
 	}
 
 	/**