Author: jsdelfino
Date: Wed Aug 22 16:12:48 2007
New Revision: 568764
URL: http://svn.apache.org/viewvc?rev=568764&view=rev
Log:
Renamed breaking test cases, I'm not sure how these test cases could work at
all as they'd need a separate running tomcat hosting the application that they
talk to.
Added:
incubator/tuscany/java/sca/samples/calculator-webapp-ws/src/test/java/calculator/CalculatorTestCaseFIXME.java
(contents, props changed)
- copied, changed from r568737,
incubator/tuscany/java/sca/samples/calculator-webapp-ws/src/test/java/calculator/CalculatorTestCase.java
incubator/tuscany/java/sca/samples/helloworld-ws-sdo-webapp/src/test/java/helloworld/HelloWorldTestCaseFIXME.java
- copied, changed from r568737,
incubator/tuscany/java/sca/samples/helloworld-ws-sdo-webapp/src/test/java/helloworld/HelloWorldTestCase.java
Removed:
incubator/tuscany/java/sca/samples/calculator-webapp-ws/src/test/java/calculator/CalculatorTestCase.java
incubator/tuscany/java/sca/samples/helloworld-ws-sdo-webapp/src/test/java/helloworld/HelloWorldTestCase.java
Copied:
incubator/tuscany/java/sca/samples/calculator-webapp-ws/src/test/java/calculator/CalculatorTestCaseFIXME.java
(from r568737,
incubator/tuscany/java/sca/samples/calculator-webapp-ws/src/test/java/calculator/CalculatorTestCase.java)
URL:
http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/calculator-webapp-ws/src/test/java/calculator/CalculatorTestCaseFIXME.java?p2=incubator/tuscany/java/sca/samples/calculator-webapp-ws/src/test/java/calculator/CalculatorTestCaseFIXME.java&p1=incubator/tuscany/java/sca/samples/calculator-webapp-ws/src/test/java/calculator/CalculatorTestCase.java&r1=568737&r2=568764&rev=568764&view=diff
==============================================================================
---
incubator/tuscany/java/sca/samples/calculator-webapp-ws/src/test/java/calculator/CalculatorTestCase.java
(original)
+++
incubator/tuscany/java/sca/samples/calculator-webapp-ws/src/test/java/calculator/CalculatorTestCaseFIXME.java
Wed Aug 22 16:12:48 2007
@@ -1,61 +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 calculator;
-
-import junit.framework.TestCase;
-
-import org.apache.tuscany.sca.host.embedded.SCADomain;
-//import
org.apache.tuscany.sca.tools.registryinspector.inspector.ExtensionPointRegistryInspector;
-
-/**
- * This shows how to test the Calculator service component.
- */
-public class CalculatorTestCase extends TestCase {
-
- private SCADomain scaDomain;
- private CalculatorService calculatorService;
- //private ExtensionPointRegistryInspector eprInspector;
-
- protected void setUp() throws Exception {
- scaDomain = SCADomain.newInstance("Calculator.composite");
- //eprInspector =
scaDomain.getService(ExtensionPointRegistryInspector.class,
- //
"ExtensionPointRegistryInspectorComponent");
- calculatorService = scaDomain.getService(CalculatorService.class,
"CalculatorServiceComponent");
- }
-
- protected void tearDown() throws Exception {
- //scaDomain.close();
- }
-
- public void testCalculator() throws Exception {
- // Inspect the extension point registry
- //System.out.println(eprInspector.eprAsString());
-
- // Calculate
- /*
- These will only work in the context of an external web container
- that we don;t have here
-*/
- assertEquals(calculatorService.add(3, 2), 5.0);
- assertEquals(calculatorService.subtract(3, 2), 1.0);
- assertEquals(calculatorService.multiply(3, 2), 6.0);
- assertEquals(calculatorService.divide(3, 2), 1.5);
-
- }
-}
+/*
+ * 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 calculator;
+
+import junit.framework.TestCase;
+
+import org.apache.tuscany.sca.host.embedded.SCADomain;
+//import
org.apache.tuscany.sca.tools.registryinspector.inspector.ExtensionPointRegistryInspector;
+
+/**
+ * This shows how to test the Calculator service component.
+ */
+public class CalculatorTestCaseFIXME extends TestCase {
+
+ private SCADomain scaDomain;
+ private CalculatorService calculatorService;
+ //private ExtensionPointRegistryInspector eprInspector;
+
+ protected void setUp() throws Exception {
+ scaDomain = SCADomain.newInstance("Calculator.composite");
+ //eprInspector =
scaDomain.getService(ExtensionPointRegistryInspector.class,
+ //
"ExtensionPointRegistryInspectorComponent");
+ calculatorService = scaDomain.getService(CalculatorService.class,
"CalculatorServiceComponent");
+ }
+
+ protected void tearDown() throws Exception {
+ //scaDomain.close();
+ }
+
+ public void testCalculator() throws Exception {
+ // Inspect the extension point registry
+ //System.out.println(eprInspector.eprAsString());
+
+ // Calculate
+ /*
+ These will only work in the context of an external web container
+ that we don;t have here
+*/
+ assertEquals(calculatorService.add(3, 2), 5.0);
+ assertEquals(calculatorService.subtract(3, 2), 1.0);
+ assertEquals(calculatorService.multiply(3, 2), 6.0);
+ assertEquals(calculatorService.divide(3, 2), 1.5);
+
+ }
+}
Propchange:
incubator/tuscany/java/sca/samples/calculator-webapp-ws/src/test/java/calculator/CalculatorTestCaseFIXME.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
incubator/tuscany/java/sca/samples/calculator-webapp-ws/src/test/java/calculator/CalculatorTestCaseFIXME.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Copied:
incubator/tuscany/java/sca/samples/helloworld-ws-sdo-webapp/src/test/java/helloworld/HelloWorldTestCaseFIXME.java
(from r568737,
incubator/tuscany/java/sca/samples/helloworld-ws-sdo-webapp/src/test/java/helloworld/HelloWorldTestCase.java)
URL:
http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/helloworld-ws-sdo-webapp/src/test/java/helloworld/HelloWorldTestCaseFIXME.java?p2=incubator/tuscany/java/sca/samples/helloworld-ws-sdo-webapp/src/test/java/helloworld/HelloWorldTestCaseFIXME.java&p1=incubator/tuscany/java/sca/samples/helloworld-ws-sdo-webapp/src/test/java/helloworld/HelloWorldTestCase.java&r1=568737&r2=568764&rev=568764&view=diff
==============================================================================
---
incubator/tuscany/java/sca/samples/helloworld-ws-sdo-webapp/src/test/java/helloworld/HelloWorldTestCase.java
(original)
+++
incubator/tuscany/java/sca/samples/helloworld-ws-sdo-webapp/src/test/java/helloworld/HelloWorldTestCaseFIXME.java
Wed Aug 22 16:12:48 2007
@@ -25,7 +25,7 @@
import junit.framework.TestCase;
-public class HelloWorldTestCase extends TestCase {
+public class HelloWorldTestCaseFIXME extends TestCase {
private SCADomain scaDomain;
private HelloWorld helloWorld;
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]