tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r529554 - /incubator/tuscany/java/sca/itest/wsdl/src/test/java/org/apache/tuscany/sca/itest/DBFailTestCase.java
Date Tue, 17 Apr 2007 10:44:33 GMT
Author: antelder
Date: Tue Apr 17 03:44:32 2007
New Revision: 529554

URL: http://svn.apache.org/viewvc?view=rev&rev=529554
Log:
wsdl itests, seperate out failing case so its easier to debug

Added:
    incubator/tuscany/java/sca/itest/wsdl/src/test/java/org/apache/tuscany/sca/itest/DBFailTestCase.java
  (with props)

Added: incubator/tuscany/java/sca/itest/wsdl/src/test/java/org/apache/tuscany/sca/itest/DBFailTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/itest/wsdl/src/test/java/org/apache/tuscany/sca/itest/DBFailTestCase.java?view=auto&rev=529554
==============================================================================
--- incubator/tuscany/java/sca/itest/wsdl/src/test/java/org/apache/tuscany/sca/itest/DBFailTestCase.java
(added)
+++ incubator/tuscany/java/sca/itest/wsdl/src/test/java/org/apache/tuscany/sca/itest/DBFailTestCase.java
Tue Apr 17 03:44:32 2007
@@ -0,0 +1,51 @@
+/*
+ * 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 org.apache.tuscany.sca.itest;
+
+import helloworld.HelloWorldService;
+import junit.framework.TestCase;
+
+import org.apache.tuscany.host.embedded.SCARuntime;
+import org.osoa.sca.CurrentCompositeContext;
+
+/**
+ * Tests all the combinations of wiring services, components, and references
+ * which use either interface.java or interface.wsdl.
+ * 
+ * The tests use a service (1) wired to a components (2) wired to another 
+ * component (3) wired to a reference (4). Each of those uses either 
+ * interface.java (a) or interface.wsdl (b). This results in 16 different
+ * combinations 1a2a3a4a thru 1b2b3b4b.
+ */
+public class DBFailTestCase extends TestCase {
+
+    public void testClient1a2a3a4a()  {
+        HelloWorldService client = CurrentCompositeContext.getContext().locateService(HelloWorldService.class,
"Client1a2a3a4a");
+        assertEquals("Hi petra", client.getGreetings("petra"));
+    }
+
+    protected void setUp() throws Exception {
+    	SCARuntime.start("test.composite");
+    }
+
+    protected void tearDown() throws Exception {
+        SCARuntime.stop();
+    }
+}

Propchange: incubator/tuscany/java/sca/itest/wsdl/src/test/java/org/apache/tuscany/sca/itest/DBFailTestCase.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/itest/wsdl/src/test/java/org/apache/tuscany/sca/itest/DBFailTestCase.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date



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