You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by is...@apache.org on 2007/02/23 22:35:47 UTC

svn commit: r511114 - in /incubator/tuscany/sandbox/isilval/notification/samples/local/src/test/resources: ./ META-INF/ META-INF/sca/ META-INF/sca/TrafficAdvisoryNotificationLocal.scdl TrafficAdvisoryNotification.componentType itest.scdl

Author: isilval
Date: Fri Feb 23 13:35:46 2007
New Revision: 511114

URL: http://svn.apache.org/viewvc?view=rev&rev=511114
Log:
separate sample

Added:
    incubator/tuscany/sandbox/isilval/notification/samples/local/src/test/resources/
    incubator/tuscany/sandbox/isilval/notification/samples/local/src/test/resources/META-INF/
    incubator/tuscany/sandbox/isilval/notification/samples/local/src/test/resources/META-INF/sca/
    incubator/tuscany/sandbox/isilval/notification/samples/local/src/test/resources/META-INF/sca/TrafficAdvisoryNotificationLocal.scdl
    incubator/tuscany/sandbox/isilval/notification/samples/local/src/test/resources/TrafficAdvisoryNotification.componentType
    incubator/tuscany/sandbox/isilval/notification/samples/local/src/test/resources/itest.scdl

Added: incubator/tuscany/sandbox/isilval/notification/samples/local/src/test/resources/META-INF/sca/TrafficAdvisoryNotificationLocal.scdl
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/isilval/notification/samples/local/src/test/resources/META-INF/sca/TrafficAdvisoryNotificationLocal.scdl?view=auto&rev=511114
==============================================================================
--- incubator/tuscany/sandbox/isilval/notification/samples/local/src/test/resources/META-INF/sca/TrafficAdvisoryNotificationLocal.scdl (added)
+++ incubator/tuscany/sandbox/isilval/notification/samples/local/src/test/resources/META-INF/sca/TrafficAdvisoryNotificationLocal.scdl Fri Feb 23 13:35:46 2007
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="ASCII"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+-->
+
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
+           xmlns:nt="http://tuscany.apache.org/xmlns/notification/1.0"
+           name="TrafficAdvisoryNotificationLocalComposite">
+
+    <component name="TrafficAdvisoryProducer">
+        <implementation.java class="org.apache.tuscany.notification.local.TrafficAdvisoryProducer"/>
+        <reference name="destination">TrafficAdvisoryNotificationComponent</reference>
+    </component>
+
+    <component name="TrafficAdvisoryNotificationComponent">
+        <nt:implementation.notification name="TrafficAdvisoryNotification"/>
+        <reference name="TrafficAdvisoryNotificationReference">
+            TrafficAdvisoryConsumer1
+        </reference>
+        <reference name="TrafficAdvisoryNotificationReference">
+            TrafficAdvisoryConsumer2
+        </reference>
+    </component>
+
+    <component name="TrafficAdvisoryConsumer1">
+        <implementation.java class="org.apache.tuscany.notification.local.TrafficAdvisoryConsumer"/>
+        <property name="name">Consumer1</property>
+    </component>
+
+    <component name="TrafficAdvisoryConsumer2">
+        <implementation.java class="org.apache.tuscany.notification.local.TrafficAdvisoryConsumer"/>
+        <property name="name">Consumer2</property>
+    </component>
+
+</composite>

Added: incubator/tuscany/sandbox/isilval/notification/samples/local/src/test/resources/TrafficAdvisoryNotification.componentType
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/isilval/notification/samples/local/src/test/resources/TrafficAdvisoryNotification.componentType?view=auto&rev=511114
==============================================================================
--- incubator/tuscany/sandbox/isilval/notification/samples/local/src/test/resources/TrafficAdvisoryNotification.componentType (added)
+++ incubator/tuscany/sandbox/isilval/notification/samples/local/src/test/resources/TrafficAdvisoryNotification.componentType Fri Feb 23 13:35:46 2007
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="ASCII"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+-->
+
+<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+     <service name="TrafficAdvisoryNotificationService">
+           <interface.java interface="org.apache.tuscany.notification.local.TrafficAdvisory"/>
+     </service>
+
+     <reference name="TrafficAdvisoryNotificationReference"
+                multiplicity="0..n">
+           <interface.java interface="org.apache.tuscany.notification.local.TrafficAdvisory"/>
+     </reference>
+</componentType>

Added: incubator/tuscany/sandbox/isilval/notification/samples/local/src/test/resources/itest.scdl
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/isilval/notification/samples/local/src/test/resources/itest.scdl?view=auto&rev=511114
==============================================================================
--- incubator/tuscany/sandbox/isilval/notification/samples/local/src/test/resources/itest.scdl (added)
+++ incubator/tuscany/sandbox/isilval/notification/samples/local/src/test/resources/itest.scdl Fri Feb 23 13:35:46 2007
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+-->
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
+           xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0"
+           name="LocalNotificationTestHarnessComposite">
+           
+    <include name="TrafficAdvisoryNotificationLocalComposite"
+             scdlResource="META-INF/sca/TrafficAdvisoryNotificationLocal.scdl"/>
+
+    <component name="testMyService">
+        <tuscany:junit class="org.apache.tuscany.notification.local.LocalNotificationITestComponent"/>
+        <reference name="producer">TrafficAdvisoryProducer</reference>
+    </component>
+
+</composite>



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