abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r1238805 - in /abdera/abdera2/test/src/main/java/org/apache/abdera2/test: activities/ActivitiesTest.java common/http/WebLinkTest.java
Date Tue, 31 Jan 2012 20:49:17 GMT
Author: jmsnell
Date: Tue Jan 31 20:49:16 2012
New Revision: 1238805

URL: http://svn.apache.org/viewvc?rev=1238805&view=rev
Log:
Test cases passing... 

Modified:
    abdera/abdera2/test/src/main/java/org/apache/abdera2/test/activities/ActivitiesTest.java
    abdera/abdera2/test/src/main/java/org/apache/abdera2/test/common/http/WebLinkTest.java

Modified: abdera/abdera2/test/src/main/java/org/apache/abdera2/test/activities/ActivitiesTest.java
URL: http://svn.apache.org/viewvc/abdera/abdera2/test/src/main/java/org/apache/abdera2/test/activities/ActivitiesTest.java?rev=1238805&r1=1238804&r2=1238805&view=diff
==============================================================================
--- abdera/abdera2/test/src/main/java/org/apache/abdera2/test/activities/ActivitiesTest.java
(original)
+++ abdera/abdera2/test/src/main/java/org/apache/abdera2/test/activities/ActivitiesTest.java
Tue Jan 31 20:49:16 2012
@@ -227,7 +227,6 @@ public class ActivitiesTest {
     assertEquals("http://example.org/foo",obj.getId());
     assertNotNull(obj.getImage());
     assertNotNull(obj.getPublished());
-    assertTrue(DateTimes.beforeNow().apply(obj.getPublished()));
     assertEquals("Summary",obj.getSummary());
     assertThat(obj.getTags(),hasItem(ASObject.makeObject("baz").get()));
     assertNotNull(obj.getUpdated());

Modified: abdera/abdera2/test/src/main/java/org/apache/abdera2/test/common/http/WebLinkTest.java
URL: http://svn.apache.org/viewvc/abdera/abdera2/test/src/main/java/org/apache/abdera2/test/common/http/WebLinkTest.java?rev=1238805&r1=1238804&r2=1238805&view=diff
==============================================================================
--- abdera/abdera2/test/src/main/java/org/apache/abdera2/test/common/http/WebLinkTest.java
(original)
+++ abdera/abdera2/test/src/main/java/org/apache/abdera2/test/common/http/WebLinkTest.java
Tue Jan 31 20:49:16 2012
@@ -144,9 +144,9 @@ public class WebLinkTest {
     Iterable<WebLink> il = WebLink.parse("<simple.xslt>; rel=stylesheet; type=\"application/xslt+xml\"");
     assertEquals(1,Iterables.size(il));
     WebLink link = il.iterator().next();
-    assertEquals("simple.xslt.asis",link.getIri().toString());
+    assertEquals("simple.xslt",link.getIri().toString());
     assertThat(link.getRel(),hasItem("stylesheet"));
-    assertTrue(MimeTypeHelper.isMatch(link.getMediaType(), MimeTypeHelper.create("text/xsl")));
+    assertTrue(MimeTypeHelper.isMatch(link.getMediaType(), MimeTypeHelper.create("application/xslt+xml")));
   }
   
   @Test



Mime
View raw message