tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From isil...@apache.org
Subject svn commit: r575022 - in /incubator/tuscany/java/sca/samples/binding-notification-consumer/src/test: ./ java/ java/notification/ java/notification/consumer/ java/notification/consumer/TrafficAdvisoryTestCase.java resources/
Date Wed, 12 Sep 2007 17:38:43 GMT
Author: isilval
Date: Wed Sep 12 10:38:42 2007
New Revision: 575022

URL: http://svn.apache.org/viewvc?rev=575022&view=rev
Log:
Add test case

Added:
    incubator/tuscany/java/sca/samples/binding-notification-consumer/src/test/
    incubator/tuscany/java/sca/samples/binding-notification-consumer/src/test/java/
    incubator/tuscany/java/sca/samples/binding-notification-consumer/src/test/java/notification/
    incubator/tuscany/java/sca/samples/binding-notification-consumer/src/test/java/notification/consumer/
    incubator/tuscany/java/sca/samples/binding-notification-consumer/src/test/java/notification/consumer/TrafficAdvisoryTestCase.java
    incubator/tuscany/java/sca/samples/binding-notification-consumer/src/test/resources/

Added: incubator/tuscany/java/sca/samples/binding-notification-consumer/src/test/java/notification/consumer/TrafficAdvisoryTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/binding-notification-consumer/src/test/java/notification/consumer/TrafficAdvisoryTestCase.java?rev=575022&view=auto
==============================================================================
--- incubator/tuscany/java/sca/samples/binding-notification-consumer/src/test/java/notification/consumer/TrafficAdvisoryTestCase.java
(added)
+++ incubator/tuscany/java/sca/samples/binding-notification-consumer/src/test/java/notification/consumer/TrafficAdvisoryTestCase.java
Wed Sep 12 10:38:42 2007
@@ -0,0 +1,61 @@
+/*
+ * 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.    
+ */
+package notification.consumer;
+
+import org.apache.tuscany.sca.host.embedded.SCADomain;
+
+import junit.framework.TestCase;
+
+public class TrafficAdvisoryTestCase extends TestCase {
+
+    private SCADomain domain;
+    
+    public void testTrafficAdvisoryNotification() throws Exception {
+        System.out.println("Only instantiating and closing domain ...");
+
+        /* Uncomment to test with producer
+        try {
+            System.out.println("TrafficAdvisoryServer, hit return to end");
+            System.in.read();
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+        */
+    }
+
+    @Override
+    protected void setUp() throws Exception {
+        try {
+            domain = SCADomain.newInstance("TrafficAdvisoryNotification.composite");
+        } catch(Throwable e) {
+            e.printStackTrace();
+            if (e instanceof Exception) {
+                throw (Exception)e;
+            }
+            else {
+                throw new Exception(e);
+            }
+        }
+    }
+    
+    @Override
+    protected void tearDown() throws Exception {
+        domain.close();
+    }
+}



---------------------------------------------------------------------
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