abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r561151 - /incubator/abdera/java/trunk/client/src/test/java/org/apache/abdera/test/client/app/AppTest.java
Date Mon, 30 Jul 2007 22:16:28 GMT
Author: jmsnell
Date: Mon Jul 30 15:16:27 2007
New Revision: 561151

URL: http://svn.apache.org/viewvc?view=rev&rev=561151
Log:
Sigh... silly bugs suck... especially when I cause 'em

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=561151&r1=561150&r2=561151
==============================================================================
--- 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
Mon Jul 30 15:16:27 2007
@@ -367,11 +367,11 @@
     options.setAuthorization("auth");
     assertEquals(options.getAuthorization(), "auth");
     
-    options.setCacheControl("public");
-    assertEquals(options.getCacheControl(), "public");
+    options.setCacheControl("no-cache");
+    assertEquals(options.getCacheControl(), "no-cache");
     
     options.setContentType("text/plain");
-    assertEquals(options.getContentType(), new MimeType("text/plain"));
+    assertTrue(MimeTypeHelper.isMatch(options.getContentType(), new MimeType("text/plain")));
     
     options.setEncodedHeader("foo", "UTF-8", "bar");
     assertEquals(options.getDecodedHeader("foo"),"bar");
@@ -380,10 +380,10 @@
     assertEquals(options.getHeader("foo"),"bar");
     
     options.setIfMatch("testing");
-    assertEquals(options.getIfMatch(),"testing");
+    assertTrue(EntityTag.matchesAny(new EntityTag("testing"), options.getIfMatch()));
     
     options.setIfNoneMatch("testing");
-    assertEquals(options.getIfNoneMatch(),"testing");
+    assertTrue(EntityTag.matchesAny(new EntityTag("testing"), options.getIfNoneMatch()));
     
     options.setSlug("This is the slug");
     assertEquals(options.getSlug(),"This is the slug");



Mime
View raw message