You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by rf...@apache.org on 2007/07/16 00:55:54 UTC
svn commit: r556473 - in
/incubator/tuscany/java/sca/itest/recursive/src/test/java/test:
BindingsTestCase.java InnerTestCase.java OuterTestCase.java
Author: rfeng
Date: Sun Jul 15 15:55:53 2007
New Revision: 556473
URL: http://svn.apache.org/viewvc?view=rev&rev=556473
Log:
Add an inner test case
Added:
incubator/tuscany/java/sca/itest/recursive/src/test/java/test/InnerTestCase.java (with props)
incubator/tuscany/java/sca/itest/recursive/src/test/java/test/OuterTestCase.java
- copied, changed from r556185, incubator/tuscany/java/sca/itest/recursive/src/test/java/test/BindingsTestCase.java
Removed:
incubator/tuscany/java/sca/itest/recursive/src/test/java/test/BindingsTestCase.java
Added: incubator/tuscany/java/sca/itest/recursive/src/test/java/test/InnerTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/itest/recursive/src/test/java/test/InnerTestCase.java?view=auto&rev=556473
==============================================================================
--- incubator/tuscany/java/sca/itest/recursive/src/test/java/test/InnerTestCase.java (added)
+++ incubator/tuscany/java/sca/itest/recursive/src/test/java/test/InnerTestCase.java Sun Jul 15 15:55:53 2007
@@ -0,0 +1,49 @@
+/*
+ * 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 test;
+
+import junit.framework.TestCase;
+
+import org.apache.tuscany.sca.host.embedded.SCADomain;
+
+public class InnerTestCase extends TestCase {
+
+ private SCADomain domain;
+ private Aggregator aggregator;
+
+ protected void setUp() throws Exception {
+ domain = SCADomain.newInstance("Inner.composite");
+ aggregator = domain.getService(Aggregator.class, "Aggregator");
+ }
+
+ protected void tearDown() throws Exception {
+ domain.close();
+ }
+
+ public void test() throws Exception {
+ try {
+ String result = aggregator.getAggregatedData();
+ assertTrue(result.contains("InnerSource"));
+ assertTrue(result.contains("InnerSource"));
+ System.out.println(result);
+ } catch (Throwable t) {
+ t.printStackTrace();
+ }
+ }
+}
Propchange: incubator/tuscany/java/sca/itest/recursive/src/test/java/test/InnerTestCase.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/java/sca/itest/recursive/src/test/java/test/InnerTestCase.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Copied: incubator/tuscany/java/sca/itest/recursive/src/test/java/test/OuterTestCase.java (from r556185, incubator/tuscany/java/sca/itest/recursive/src/test/java/test/BindingsTestCase.java)
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/itest/recursive/src/test/java/test/OuterTestCase.java?view=diff&rev=556473&p1=incubator/tuscany/java/sca/itest/recursive/src/test/java/test/BindingsTestCase.java&r1=556185&p2=incubator/tuscany/java/sca/itest/recursive/src/test/java/test/OuterTestCase.java&r2=556473
==============================================================================
--- incubator/tuscany/java/sca/itest/recursive/src/test/java/test/BindingsTestCase.java (original)
+++ incubator/tuscany/java/sca/itest/recursive/src/test/java/test/OuterTestCase.java Sun Jul 15 15:55:53 2007
@@ -22,7 +22,7 @@
import org.apache.tuscany.sca.host.embedded.SCADomain;
-public class BindingsTestCase extends TestCase {
+public class OuterTestCase extends TestCase {
private SCADomain domain;
private Aggregator aggregator;
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org