You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by lr...@apache.org on 2009/10/12 07:14:10 UTC

svn commit: r824230 - in /tuscany/branches/sca-java-1.x/modules/binding-atom-abdera/src/test/java/org/apache/tuscany/sca/binding/atom/news: NewsService.java NewsServiceImpl.java NewsServiceTestCase.java

Author: lresende
Date: Mon Oct 12 05:14:09 2009
New Revision: 824230

URL: http://svn.apache.org/viewvc?rev=824230&view=rev
Log:
TUSCANY-3288 - Fixing up test scenario and re-enabling test case

Modified:
    tuscany/branches/sca-java-1.x/modules/binding-atom-abdera/src/test/java/org/apache/tuscany/sca/binding/atom/news/NewsService.java
    tuscany/branches/sca-java-1.x/modules/binding-atom-abdera/src/test/java/org/apache/tuscany/sca/binding/atom/news/NewsServiceImpl.java
    tuscany/branches/sca-java-1.x/modules/binding-atom-abdera/src/test/java/org/apache/tuscany/sca/binding/atom/news/NewsServiceTestCase.java

Modified: tuscany/branches/sca-java-1.x/modules/binding-atom-abdera/src/test/java/org/apache/tuscany/sca/binding/atom/news/NewsService.java
URL: http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/modules/binding-atom-abdera/src/test/java/org/apache/tuscany/sca/binding/atom/news/NewsService.java?rev=824230&r1=824229&r2=824230&view=diff
==============================================================================
--- tuscany/branches/sca-java-1.x/modules/binding-atom-abdera/src/test/java/org/apache/tuscany/sca/binding/atom/news/NewsService.java (original)
+++ tuscany/branches/sca-java-1.x/modules/binding-atom-abdera/src/test/java/org/apache/tuscany/sca/binding/atom/news/NewsService.java Mon Oct 12 05:14:09 2009
@@ -27,55 +27,6 @@
 import org.osoa.sca.annotations.Remotable;
 
 @Remotable
-//@XmlSeeAlso(Headline.class)
-public interface NewsService /*extends Collection<String, Headline>*/{
+public interface NewsService extends Collection<String, Headline>{
 
-    /**
-     * Get the whole collection.
-     * 
-     * @return the whole collection.
-     */
-    Entry<String, Headline>[] getAll();
-
-    /**
-     * Returns a collection resulting from a query.
-     * 
-     * @return the collection.
-     */
-    Entry<String, Headline>[] query(String queryString);
-
-    /**
-     * Creates a new item.
-     * 
-     * @param key
-     * @param item
-     * @return
-     */
-    String post(String key, Headline item);
-
-    /**
-     * Retrieves an item.
-     * 
-     * @param key
-     * @return
-     */
-    Headline get(String key) throws NotFoundException;
-
-    /**
-     * Updates an item.
-     * 
-     * @param key
-     * @param item
-     * @return
-     */
-    void put(String key, Headline item) throws NotFoundException;
-
-    /**
-     * Delete an item.
-     * 
-     * @param key
-     */
-    void delete(String key) throws NotFoundException;
-
-    
 }

Modified: tuscany/branches/sca-java-1.x/modules/binding-atom-abdera/src/test/java/org/apache/tuscany/sca/binding/atom/news/NewsServiceImpl.java
URL: http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/modules/binding-atom-abdera/src/test/java/org/apache/tuscany/sca/binding/atom/news/NewsServiceImpl.java?rev=824230&r1=824229&r2=824230&view=diff
==============================================================================
--- tuscany/branches/sca-java-1.x/modules/binding-atom-abdera/src/test/java/org/apache/tuscany/sca/binding/atom/news/NewsServiceImpl.java (original)
+++ tuscany/branches/sca-java-1.x/modules/binding-atom-abdera/src/test/java/org/apache/tuscany/sca/binding/atom/news/NewsServiceImpl.java Mon Oct 12 05:14:09 2009
@@ -22,8 +22,6 @@
 import java.util.HashMap;
 import java.util.Map;
 
-import javax.xml.bind.annotation.XmlSeeAlso;
-
 import org.apache.tuscany.sca.data.collection.Entry;
 import org.apache.tuscany.sca.data.collection.NotFoundException;
 import org.osoa.sca.annotations.Init;

Modified: tuscany/branches/sca-java-1.x/modules/binding-atom-abdera/src/test/java/org/apache/tuscany/sca/binding/atom/news/NewsServiceTestCase.java
URL: http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/modules/binding-atom-abdera/src/test/java/org/apache/tuscany/sca/binding/atom/news/NewsServiceTestCase.java?rev=824230&r1=824229&r2=824230&view=diff
==============================================================================
--- tuscany/branches/sca-java-1.x/modules/binding-atom-abdera/src/test/java/org/apache/tuscany/sca/binding/atom/news/NewsServiceTestCase.java (original)
+++ tuscany/branches/sca-java-1.x/modules/binding-atom-abdera/src/test/java/org/apache/tuscany/sca/binding/atom/news/NewsServiceTestCase.java Mon Oct 12 05:14:09 2009
@@ -55,7 +55,7 @@
     }
     
     @Test
-    @Ignore("TUSCANY-3288")
+    //@Ignore("TUSCANY-3288")
     public void testNewsService() throws Exception {
         Entry<String, Headline>[] entries = newsService.getAll();