You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@abdera.apache.org by jm...@apache.org on 2007/09/05 16:35:19 UTC

svn commit: r572958 - /incubator/abdera/java/trunk/parser/src/test/java/org/apache/abdera/test/parser/ServiceDocumentTest.java

Author: jmsnell
Date: Wed Sep  5 07:35:19 2007
New Revision: 572958

URL: http://svn.apache.org/viewvc?rev=572958&view=rev
Log:
Tweak the test so that it works.  This is not ideal. 
We need to tweak the behavior of the setAccept* and addAccept* methods so that this is more intuitive

Modified:
    incubator/abdera/java/trunk/parser/src/test/java/org/apache/abdera/test/parser/ServiceDocumentTest.java

Modified: incubator/abdera/java/trunk/parser/src/test/java/org/apache/abdera/test/parser/ServiceDocumentTest.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/parser/src/test/java/org/apache/abdera/test/parser/ServiceDocumentTest.java?rev=572958&r1=572957&r2=572958&view=diff
==============================================================================
--- incubator/abdera/java/trunk/parser/src/test/java/org/apache/abdera/test/parser/ServiceDocumentTest.java (original)
+++ incubator/abdera/java/trunk/parser/src/test/java/org/apache/abdera/test/parser/ServiceDocumentTest.java Wed Sep  5 07:35:19 2007
@@ -40,7 +40,7 @@
         Service svc = factory.newService();
         Workspace ws = svc.addWorkspace("test-ws");
         Collection coll = ws.addCollection("test-coll", ws.getTitle() + "/test-coll");
-        coll.addAcceptsEntry();
+        coll.setAcceptsEntry();
         assertTrue("Collection does not accept entries.", coll.acceptsEntry());
         coll.addAccepts("application/apples");
         assertTrue("Collection does not accept apples.", coll.accepts("application/apples"));
@@ -48,7 +48,7 @@
         svc.writeTo(sw);
         // System.out.println(sw);
         String s = sw.toString();
-        assertTrue("Service document does not specify acceptance of entries.", s.contains("application/atom+xml;type=entry"));
+        assertTrue("Service document does not specify acceptance of entries.", s.contains("application/atom+xml; type=entry"));
         assertTrue("Service document does not specify acceptance of apples.", s.contains("application/apples"));
     }
 }