tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rf...@apache.org
Subject svn commit: r552605 - in /incubator/tuscany/java/sca/demos/alert-aggregator/src: main/resources/alerts.composite test/java/org/apache/tuscany/sca/demos/aggregator/AlertsTestCase.java
Date Mon, 02 Jul 2007 22:09:06 GMT
Author: rfeng
Date: Mon Jul  2 15:09:05 2007
New Revision: 552605

URL: http://svn.apache.org/viewvc?view=rev&rev=552605
Log:
Fix the alert-aggregator demo to work with the latest trunk code
* Change the service name to be "Collection"
* Change the port # from 8085 to 8080

Modified:
    incubator/tuscany/java/sca/demos/alert-aggregator/src/main/resources/alerts.composite
    incubator/tuscany/java/sca/demos/alert-aggregator/src/test/java/org/apache/tuscany/sca/demos/aggregator/AlertsTestCase.java

Modified: incubator/tuscany/java/sca/demos/alert-aggregator/src/main/resources/alerts.composite
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/alert-aggregator/src/main/resources/alerts.composite?view=diff&rev=552605&r1=552604&r2=552605
==============================================================================
--- incubator/tuscany/java/sca/demos/alert-aggregator/src/main/resources/alerts.composite
(original)
+++ incubator/tuscany/java/sca/demos/alert-aggregator/src/main/resources/alerts.composite
Mon Jul  2 15:09:05 2007
@@ -28,12 +28,12 @@
     <dbsdo:import.sdo factory="org.apache.tuscany.sca.demos.aggregator.types.TypesFactory"/>

 
     <!-- The alerts rss service -->
-    <service name="AlertsFeedServiceRSS" promote="AlertsFeedServiceComponent/Feed">
+    <service name="AlertsFeedServiceRSS" promote="AlertsFeedServiceComponent/Collection">
         <binding.rss />
     </service>    
     
     <!-- The alerts atom service -->
-    <service name="AlertsFeedServiceAtom" promote="AlertsFeedServiceComponent/Feed">
+    <service name="AlertsFeedServiceAtom" promote="AlertsFeedServiceComponent/Collection">
         <binding.atom />
     </service> 
     

Modified: incubator/tuscany/java/sca/demos/alert-aggregator/src/test/java/org/apache/tuscany/sca/demos/aggregator/AlertsTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/alert-aggregator/src/test/java/org/apache/tuscany/sca/demos/aggregator/AlertsTestCase.java?view=diff&rev=552605&r1=552604&r2=552605
==============================================================================
--- incubator/tuscany/java/sca/demos/alert-aggregator/src/test/java/org/apache/tuscany/sca/demos/aggregator/AlertsTestCase.java
(original)
+++ incubator/tuscany/java/sca/demos/alert-aggregator/src/test/java/org/apache/tuscany/sca/demos/aggregator/AlertsTestCase.java
Mon Jul  2 15:09:05 2007
@@ -61,19 +61,19 @@
 
     public void testGetAllNewAlerts() throws Exception {   
         JSONObject jsonRequest = new JSONObject("{\"params\":[\"sometext\"],\"method\":\"getAllNewAlerts\",\"id\":2}");
-        JSONObject jsonResp    = callService ("http://localhost:8085/SCADomain/AlertsServiceJSONRPC",
+        JSONObject jsonResp    = callService ("http://localhost:8080/SCADomain/AlertsServiceJSONRPC",
                                               jsonRequest);                             
    
     }   
     
     public void testAddAlertSources() throws Exception {   
         JSONObject jsonRequest = new JSONObject("{\"params\":[{\"name\":\"news\",\"id\":\"2\",\"address\":\"www.news.com\",\"feedAddress\":\"http://news.com.com/2547-1_3-0-20.xml\",\"feedType\":\"rss\",\"lastChecked\":\"lastChecked\",\"javaClass\":\"org.apache.tuscany.sca.demos.aggregator.types.impl.SourceTypeImpl\"}],\"method\":\"addAlertSource\",\"id\":2}");
-        JSONObject jsonResp    = callService ("http://localhost:8085/SCADomain/AlertsSourcesServiceJSONRPC",
+        JSONObject jsonResp    = callService ("http://localhost:8080/SCADomain/AlertsSourcesServiceJSONRPC",
                                               jsonRequest);  
     }
   
     public void testGetAlertSources() throws Exception {  
         JSONObject jsonRequest = new JSONObject("{\"params\":[\"sometext\"],\"method\":\"getAlertSources\",\"id\":2}");
-        JSONObject jsonResp    = callService ("http://localhost:8085/SCADomain/AlertsSourcesServiceJSONRPC",
+        JSONObject jsonResp    = callService ("http://localhost:8080/SCADomain/AlertsSourcesServiceJSONRPC",
                                               jsonRequest);                             
   
         assertEquals("BBC News", jsonResp.getJSONObject("result").getJSONObject("source").optJSONArray("list").getJSONObject(0).getString("name"));

     }    



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org


Mime
View raw message