summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/node2/Section10TestCase.java
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2010-06-28 08:14:56 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2010-06-28 08:14:56 +0000
commit4d7b1aab8a0c4d85fb47f8d08c1be3cf373bb412 (patch)
tree00a977ae99a2218eb4246ea47dea7a7234008029 /sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/node2/Section10TestCase.java
parent92f5a563da456e40b6170ce5c5ecec11d04bc7d9 (diff)
Continue bring up of section 10 apis code. Rename to classes to clearer names
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@958497 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/node2/Section10TestCase.java (renamed from sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/something/Section10TestCase.java)22
1 files changed, 12 insertions, 10 deletions
diff --git a/sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/something/Section10TestCase.java b/sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/node2/Section10TestCase.java
index 373421adc1..f87b910f7a 100644
--- a/sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/something/Section10TestCase.java
+++ b/sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/node2/Section10TestCase.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.apache.tuscany.sca.something;
+package org.apache.tuscany.sca.node2;
import java.net.MalformedURLException;
import java.util.List;
@@ -25,8 +25,10 @@ import junit.framework.Assert;
import org.apache.tuscany.sca.contribution.processor.ContributionReadException;
import org.apache.tuscany.sca.monitor.ValidationException;
+import org.apache.tuscany.sca.node2.Node;
+import org.apache.tuscany.sca.node2.NodeFactory;
+import org.apache.tuscany.sca.node2.impl.NodeImpl;
import org.apache.tuscany.sca.runtime.ActivationException;
-import org.apache.tuscany.sca.something.impl.Section10Impl;
import org.junit.Ignore;
import org.junit.Test;
import org.oasisopen.sca.NoSuchDomainException;
@@ -36,7 +38,7 @@ public class Section10TestCase {
@Test
public void testInstallDeployable() throws NoSuchServiceException, NoSuchDomainException, ContributionReadException, ActivationException, ValidationException {
- Section10 section10 = Section10Factory.createSection10();
+ Node section10 = NodeFactory.createSection10();
section10.installContribution("helloworld", "src/test/resources/sample-helloworld.jar", null, null, true);
// Helloworld helloworldService = section10.getService(Helloworld.class, "HelloworldComponent");
@@ -46,7 +48,7 @@ public class Section10TestCase {
@Ignore("TODO: fails with Sun JDK due to SCA properties issue")
@Test
public void testInstallWithDependent() throws NoSuchServiceException, ContributionReadException, ActivationException, ValidationException {
- Section10 section10 = Section10Factory.createSection10();
+ Node section10 = NodeFactory.createSection10();
section10.installContribution("store", "/Tuscany/svn/2.x-trunk/itest/T3558/src/test/resources/sample-store.jar", null, null, true);
section10.installContribution("store-client", "/Tuscany/svn/2.x-trunk/itest/T3558/src/test/resources/sample-store-client.jar", null, null, true);
@@ -56,7 +58,7 @@ public class Section10TestCase {
@Test
public void testInstallNoDeployable() throws NoSuchServiceException, NoSuchDomainException, ContributionReadException, ActivationException, ValidationException {
- Section10 section10 = Section10Factory.createSection10();
+ Node section10 = NodeFactory.createSection10();
section10.installContribution("helloworld", "src/test/resources/sample-helloworld-nodeployable.jar", null, null, true);
// SCAClientFactory scaClientFactory = section10.getSCAClientFactory();
@@ -74,7 +76,7 @@ public class Section10TestCase {
@Test
public void testGetInstalledContributions() throws NoSuchServiceException, NoSuchDomainException, ContributionReadException, ActivationException, ValidationException {
- Section10 section10 = Section10Factory.createSection10();
+ Node section10 = NodeFactory.createSection10();
section10.installContribution("foo", "src/test/resources/sample-helloworld-nodeployable.jar", null, null, true);
List<String> ics = section10.getInstalledContributions();
Assert.assertEquals(1, ics.size());
@@ -83,7 +85,7 @@ public class Section10TestCase {
@Test
public void testGetDeployedCompostes() throws NoSuchServiceException, NoSuchDomainException, ContributionReadException, MalformedURLException, ActivationException, ValidationException {
- Section10 section10 = Section10Factory.createSection10();
+ Node section10 = NodeFactory.createSection10();
section10.installContribution("foo", "src/test/resources/sample-helloworld.jar", null, null, true);
List<String> dcs = section10.getDeployedCompostes("foo");
Assert.assertEquals(1, dcs.size());
@@ -92,7 +94,7 @@ public class Section10TestCase {
@Test
public void testRemoveComposte() throws NoSuchServiceException, NoSuchDomainException, ContributionReadException, MalformedURLException, ActivationException, ValidationException {
- Section10 section10 = Section10Factory.createSection10();
+ Node section10 = NodeFactory.createSection10();
section10.installContribution("foo", "src/test/resources/sample-helloworld.jar", null, null, true);
section10.removeFromDomainLevelComposite("foo/helloworld.composite");
List<String> dcs = section10.getDeployedCompostes("foo");
@@ -101,8 +103,8 @@ public class Section10TestCase {
@Test
public void testInstallWithMetaData() throws ContributionReadException, ActivationException, ValidationException {
- Section10 section10 = Section10Factory.createSection10();
- ((Section10Impl)section10).installContribution("helloworld", "src/test/resources/sample-helloworld-nodeployable.jar", "src/test/resources/sca-contribution-generated.xml", null, true);
+ Node section10 = NodeFactory.createSection10();
+ ((NodeImpl)section10).installContribution("helloworld", "src/test/resources/sample-helloworld-nodeployable.jar", "src/test/resources/sca-contribution-generated.xml", null, true);
List<String> dcs = section10.getDeployedCompostes("helloworld");
Assert.assertEquals(1, dcs.size());