tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From andy...@apache.org
Subject svn commit: r825378 - /tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/internal/services/PartialMarkupDocumentLinkerTest.java
Date Thu, 15 Oct 2009 03:00:25 GMT
Author: andyhot
Date: Thu Oct 15 03:00:25 2009
New Revision: 825378

URL: http://svn.apache.org/viewvc?rev=825378&view=rev
Log:
TAP5-894: Don't compare strings directly - just the jsonObjects

Modified:
    tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/internal/services/PartialMarkupDocumentLinkerTest.java

Modified: tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/internal/services/PartialMarkupDocumentLinkerTest.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/internal/services/PartialMarkupDocumentLinkerTest.java?rev=825378&r1=825377&r2=825378&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/internal/services/PartialMarkupDocumentLinkerTest.java
(original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/internal/services/PartialMarkupDocumentLinkerTest.java
Thu Oct 15 03:00:25 2009
@@ -62,9 +62,11 @@
         JSONObject reply = new JSONObject();
 
         linker.commit(reply);
-
-        assertEquals(reply.toString(),
-                     "{\"stylesheets\":[{\"href\":\"foo.css\",\"media\":\"print\"},{\"href\":\"bar.css\"}]}");
+        
+        JSONObject expected = new JSONObject(
+        		"{\"stylesheets\":[{\"href\":\"foo.css\",\"media\":\"print\"},{\"href\":\"bar.css\"}]}");
+        
+        assertEquals(reply, expected);
 
     }
 }



Mime
View raw message