abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From u..@apache.org
Subject svn commit: r538943 - /incubator/abdera/java/trunk/client/src/test/java/org/apache/abdera/test/client/app/AppTest.java
Date Thu, 17 May 2007 14:33:17 GMT
Author: ugo
Date: Thu May 17 07:33:16 2007
New Revision: 538943

URL: http://svn.apache.org/viewvc?view=rev&rev=538943
Log:
Make actual mime types correspond to expected ones in tests.

Modified:
    incubator/abdera/java/trunk/client/src/test/java/org/apache/abdera/test/client/app/AppTest.java

Modified: incubator/abdera/java/trunk/client/src/test/java/org/apache/abdera/test/client/app/AppTest.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/client/src/test/java/org/apache/abdera/test/client/app/AppTest.java?view=diff&rev=538943&r1=538942&r2=538943
==============================================================================
--- incubator/abdera/java/trunk/client/src/test/java/org/apache/abdera/test/client/app/AppTest.java
(original)
+++ incubator/abdera/java/trunk/client/src/test/java/org/apache/abdera/test/client/app/AppTest.java
Thu May 17 07:33:16 2007
@@ -185,7 +185,7 @@
         try {
           if (MimeTypeHelper.isMatch(
             request.getContentType(), 
-            "application/atom+xml")) {
+            "application/atom+xml;type=entry")) {
             MimeType type = new MimeType(request.getContentType());
             String charset = type.getParameter("charset");
             String uri = AppTest.INSTANCE.getBase() + "/collections/entries";
@@ -246,7 +246,7 @@
         switch(t) {
           case ENTRY:
             try {
-              if (MimeTypeHelper.isMatch(request.getContentType(), "application/atom+xml"))
{
+              if (MimeTypeHelper.isMatch(request.getContentType(), "application/atom+xml;type=entry"))
{
                 Entry entry = feed.getRoot().getEntries().get(target);
                 MimeType type = new MimeType(request.getContentType());
                 String charset = type.getParameter("charset");
@@ -510,7 +510,7 @@
 
     // submit the changes
     options = client.getDefaultRequestOptions();
-    options.setContentType("application/atom+xml");
+    options.setContentType("application/atom+xml;type=entry");
     options.setHeader("Connection", "close");
 
     response = client.put(edit_uri, entry, options);



Mime
View raw message