[Yanel-commits] rev 22037 - public/yanel/trunk/src/test/htmlunit/org/wyona/yanel/htmlunit

josias at wyona.com josias at wyona.com
Tue Jan 23 10:29:23 CET 2007


Author: josias
Date: 2007-01-23 10:29:21 +0100 (Tue, 23 Jan 2007)
New Revision: 22037

Modified:
   public/yanel/trunk/src/test/htmlunit/org/wyona/yanel/htmlunit/AbstractHtmlUnitTest.java
Log:
switched expected title and real title to get a meaningful error message, further improved message

Modified: public/yanel/trunk/src/test/htmlunit/org/wyona/yanel/htmlunit/AbstractHtmlUnitTest.java
===================================================================
--- public/yanel/trunk/src/test/htmlunit/org/wyona/yanel/htmlunit/AbstractHtmlUnitTest.java	2007-01-23 09:12:12 UTC (rev 22036)
+++ public/yanel/trunk/src/test/htmlunit/org/wyona/yanel/htmlunit/AbstractHtmlUnitTest.java	2007-01-23 09:29:21 UTC (rev 22037)
@@ -283,8 +283,7 @@
      */
     protected void assertTitleEquals(String expectedTitle) {
         String title = currentPage.getTitleText();
-        assertEquals("provided title \"" + expectedTitle + "\" doesn't match page title \"" + title
-                + "\"", title, expectedTitle);
+        assertEquals("Wrong page title: ", expectedTitle, title);
     }
 
     /**




More information about the Yanel-commits mailing list