Author: andyhot
Date: Thu Nov 19 16:13:27 2009
New Revision: 882189

URL: http://svn.apache.org/viewvc?rev=882189&view=rev
Log:
TAP5-894: backport fix for unreliable test

Modified:
    
tapestry/tapestry5/branches/5.1.0.x-dev/tapestry-core/src/test/java/org/apache/tapestry5/internal/services/PartialMarkupDocumentLinkerTest.java

Modified: 
tapestry/tapestry5/branches/5.1.0.x-dev/tapestry-core/src/test/java/org/apache/tapestry5/internal/services/PartialMarkupDocumentLinkerTest.java
URL: 
http://svn.apache.org/viewvc/tapestry/tapestry5/branches/5.1.0.x-dev/tapestry-core/src/test/java/org/apache/tapestry5/internal/services/PartialMarkupDocumentLinkerTest.java?rev=882189&r1=882188&r2=882189&view=diff
==============================================================================
--- 
tapestry/tapestry5/branches/5.1.0.x-dev/tapestry-core/src/test/java/org/apache/tapestry5/internal/services/PartialMarkupDocumentLinkerTest.java
 (original)
+++ 
tapestry/tapestry5/branches/5.1.0.x-dev/tapestry-core/src/test/java/org/apache/tapestry5/internal/services/PartialMarkupDocumentLinkerTest.java
 Thu Nov 19 16:13:27 2009
@@ -62,9 +62,11 @@
         JSONObject reply = new JSONObject();
 
         linker.commit(reply);
+        
+        JSONObject expected = new JSONObject(
+                    
"{\"stylesheets\":[{\"href\":\"foo.css\",\"media\":\"print\"},{\"href\":\"bar.css\"}]}");
 
-        assertEquals(reply.toString(),
-                     
"{\"stylesheets\":[{\"href\":\"foo.css\",\"media\":\"print\"},{\"href\":\"bar.css\"}]}");
+        assertEquals(reply, expected);
 
     }
 }


Reply via email to