abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r616035 - /incubator/abdera/java/trunk/server/src/test/java/org/apache/abdera/protocol/server/test/custom/CustomProvider.java
Date Mon, 28 Jan 2008 20:46:56 GMT
Author: jmsnell
Date: Mon Jan 28 12:46:55 2008
New Revision: 616035

URL: http://svn.apache.org/viewvc?rev=616035&view=rev
Log:
Use the SimpleAdapter instance as the CollectionInfo 

Modified:
    incubator/abdera/java/trunk/server/src/test/java/org/apache/abdera/protocol/server/test/custom/CustomProvider.java

Modified: incubator/abdera/java/trunk/server/src/test/java/org/apache/abdera/protocol/server/test/custom/CustomProvider.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/server/src/test/java/org/apache/abdera/protocol/server/test/custom/CustomProvider.java?rev=616035&r1=616034&r2=616035&view=diff
==============================================================================
--- incubator/abdera/java/trunk/server/src/test/java/org/apache/abdera/protocol/server/test/custom/CustomProvider.java
(original)
+++ incubator/abdera/java/trunk/server/src/test/java/org/apache/abdera/protocol/server/test/custom/CustomProvider.java
Mon Jan 28 12:46:55 2008
@@ -26,14 +26,13 @@
 import org.apache.abdera.protocol.server.context.RequestContextWrapper;
 import org.apache.abdera.protocol.server.impl.AbstractWorkspaceProvider;
 import org.apache.abdera.protocol.server.impl.RegexTargetResolver;
-import org.apache.abdera.protocol.server.impl.SimpleCollectionInfo;
 import org.apache.abdera.protocol.server.impl.SimpleWorkspaceInfo;
 import org.apache.abdera.protocol.server.impl.TemplateTargetBuilder;
 
 public class CustomProvider 
   extends AbstractWorkspaceProvider {
 
-  private final CollectionAdapter adapter;
+  private final SimpleAdapter adapter;
   
   public CustomProvider() {
     
@@ -59,12 +58,7 @@
     
     SimpleWorkspaceInfo workspace = new SimpleWorkspaceInfo();
     workspace.setTitle("A Simple Workspace");
-    workspace.addCollection(
-      new SimpleCollectionInfo(
-        "A simple feed",
-        "/atom/feed",
-        "application/atom+xml;type=entry"
-      ));
+    workspace.addCollection(adapter);
     addWorkspace(workspace);
     
     addFilter(new SimpleFilter());



Mime
View raw message