[seam-commits] Seam SVN: r10252 - trunk/examples/restbay/src/org/jboss/seam/example/restbay/test.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Tue Mar 31 07:47:03 EDT 2009


Author: jharting
Date: 2009-03-31 07:47:03 -0400 (Tue, 31 Mar 2009)
New Revision: 10252

Modified:
   trunk/examples/restbay/src/org/jboss/seam/example/restbay/test/BasicServiceTest.java
Log:
better debug information to find out why test fails in hudson

Modified: trunk/examples/restbay/src/org/jboss/seam/example/restbay/test/BasicServiceTest.java
===================================================================
--- trunk/examples/restbay/src/org/jboss/seam/example/restbay/test/BasicServiceTest.java	2009-03-31 10:52:24 UTC (rev 10251)
+++ trunk/examples/restbay/src/org/jboss/seam/example/restbay/test/BasicServiceTest.java	2009-03-31 11:47:03 UTC (rev 10252)
@@ -4,6 +4,7 @@
 import org.jboss.seam.example.restbay.test.fwk.MockHttpServletResponse;
 import org.jboss.seam.example.restbay.test.fwk.MockHttpServletRequest;
 import org.testng.annotations.Test;
+import static org.testng.Assert.assertEquals;
 
 import javax.servlet.http.Cookie;
 import javax.ws.rs.core.MediaType;
@@ -217,7 +218,7 @@
          protected void onResponse(MockHttpServletResponse response)
          {
             assert response.getStatus() == 200;
-            assert response.getContentAsString().equals(ISO_DATE_MILLIS);
+            assertEquals(response.getContentAsString(), ISO_DATE_MILLIS);
          }
 
       }.run();




More information about the seam-commits mailing list