roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agillil...@apache.org
Subject svn commit: r528072 - /roller/trunk/apps/planet/test/java/org/apache/roller/planet/business/EntryFunctionalTests.java
Date Thu, 12 Apr 2007 18:19:19 GMT
Author: agilliland
Date: Thu Apr 12 11:19:18 2007
New Revision: 528072

URL: http://svn.apache.org/viewvc?view=rev&rev=528072
Log:
add test query for entries constrained by group and timeframe.


Modified:
    roller/trunk/apps/planet/test/java/org/apache/roller/planet/business/EntryFunctionalTests.java

Modified: roller/trunk/apps/planet/test/java/org/apache/roller/planet/business/EntryFunctionalTests.java
URL: http://svn.apache.org/viewvc/roller/trunk/apps/planet/test/java/org/apache/roller/planet/business/EntryFunctionalTests.java?view=diff&rev=528072&r1=528071&r2=528072
==============================================================================
--- roller/trunk/apps/planet/test/java/org/apache/roller/planet/business/EntryFunctionalTests.java
(original)
+++ roller/trunk/apps/planet/test/java/org/apache/roller/planet/business/EntryFunctionalTests.java
Thu Apr 12 11:19:18 2007
@@ -16,6 +16,7 @@
 
 package org.apache.roller.planet.business;
 
+import java.util.Date;
 import junit.framework.TestCase;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
@@ -94,6 +95,9 @@
         // by group
         PlanetGroupData group = mgr.getGroupById(testGroup1.getId());
         assertEquals(3, mgr.getEntries(group, null, null, 0, 10).size());
+        
+        // by group with timeframe constraint
+        assertEquals(0, mgr.getEntries(group, new Date(), null, 0, 10).size());
     }
     
     



Mime
View raw message