Author: antelder
Date: Mon Jun 28 11:01:55 2010
New Revision: 958541

URL: http://svn.apache.org/viewvc?rev=958541&view=rev
Log:
More updates for new names

Added:
    
tuscany/sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/node2/NodeTestCase.java
      - copied, changed from r958535, 
tuscany/sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/node2/Section10TestCase.java
Removed:
    
tuscany/sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/node2/Section10TestCase.java
Modified:
    
tuscany/sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/node2/DeployerTestCase.java

Modified: 
tuscany/sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/node2/DeployerTestCase.java
URL: 
http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/node2/DeployerTestCase.java?rev=958541&r1=958540&r2=958541&view=diff
==============================================================================
--- 
tuscany/sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/node2/DeployerTestCase.java
 (original)
+++ 
tuscany/sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/node2/DeployerTestCase.java
 Mon Jun 28 11:01:55 2010
@@ -44,7 +44,7 @@ public class DeployerTestCase {
 
     @Test
     public void testInstalledContribution() throws NoSuchServiceException, 
NoSuchDomainException, ContributionReadException, ActivationException, 
ValidationException, MalformedURLException {
-        Node section10 = NodeFactory.createSection10();
+        Node section10 = NodeFactory.createNode();
         
         Deployer deployer = section10.getDeployer();
         Monitor monitor = deployer.createMonitor();
@@ -59,7 +59,7 @@ public class DeployerTestCase {
 
     @Test
     public void testAddDeploymentComposite() throws NoSuchServiceException, 
NoSuchDomainException, ContributionReadException, ActivationException, 
ValidationException, MalformedURLException, XMLStreamException {
-        Node section10 = NodeFactory.createSection10();
+        Node section10 = NodeFactory.createNode();
         
         section10.installContribution("foo", 
"src/test/resources/sample-helloworld-nodeployable.jar", null, null, true);
 

Copied: 
tuscany/sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/node2/NodeTestCase.java
 (from r958535, 
tuscany/sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/node2/Section10TestCase.java)
URL: 
http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/node2/NodeTestCase.java?p2=tuscany/sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/node2/NodeTestCase.java&p1=tuscany/sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/node2/Section10TestCase.java&r1=958535&r2=958541&rev=958541&view=diff
==============================================================================
--- 
tuscany/sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/node2/Section10TestCase.java
 (original)
+++ 
tuscany/sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/node2/NodeTestCase.java
 Mon Jun 28 11:01:55 2010
@@ -34,11 +34,11 @@ import org.junit.Test;
 import org.oasisopen.sca.NoSuchDomainException;
 import org.oasisopen.sca.NoSuchServiceException;
 
-public class Section10TestCase {
+public class NodeTestCase {
 
     @Test
     public void testInstallDeployable() throws NoSuchServiceException, 
NoSuchDomainException, ContributionReadException, ActivationException, 
ValidationException {
-        Node section10 = NodeFactory.createSection10();
+        Node section10 = NodeFactory.createNode();
         section10.installContribution("helloworld", 
"src/test/resources/sample-helloworld.jar", null, null, true);
 
 //        Helloworld helloworldService = 
section10.getService(Helloworld.class, "HelloworldComponent");
@@ -48,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 {
-        Node section10 = NodeFactory.createSection10();
+        Node section10 = NodeFactory.createNode();
         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);
 
@@ -58,7 +58,7 @@ public class Section10TestCase {
 
     @Test
     public void testInstallNoDeployable() throws NoSuchServiceException, 
NoSuchDomainException, ContributionReadException, ActivationException, 
ValidationException {
-        Node section10 = NodeFactory.createSection10();
+        Node section10 = NodeFactory.createNode();
         section10.installContribution("helloworld", 
"src/test/resources/sample-helloworld-nodeployable.jar", null, null, true);
 
 //        SCAClientFactory scaClientFactory = section10.getSCAClientFactory();
@@ -76,7 +76,7 @@ public class Section10TestCase {
 
     @Test
     public void testGetInstalledContributions() throws NoSuchServiceException, 
NoSuchDomainException, ContributionReadException, ActivationException, 
ValidationException {
-        Node section10 = NodeFactory.createSection10();
+        Node section10 = NodeFactory.createNode();
         section10.installContribution("foo", 
"src/test/resources/sample-helloworld-nodeployable.jar", null, null, true);
         List<String> ics = section10.getInstalledContributions();
         Assert.assertEquals(1, ics.size());
@@ -85,7 +85,7 @@ public class Section10TestCase {
 
     @Test
     public void testGetDeployedCompostes() throws NoSuchServiceException, 
NoSuchDomainException, ContributionReadException, MalformedURLException, 
ActivationException, ValidationException {
-        Node section10 = NodeFactory.createSection10();
+        Node section10 = NodeFactory.createNode();
         section10.installContribution("foo", 
"src/test/resources/sample-helloworld.jar", null, null, true);
         List<String> dcs = section10.getDeployedCompostes("foo");
         Assert.assertEquals(1, dcs.size());
@@ -94,7 +94,7 @@ public class Section10TestCase {
 
     @Test
     public void testRemoveComposte() throws NoSuchServiceException, 
NoSuchDomainException, ContributionReadException, MalformedURLException, 
ActivationException, ValidationException {
-        Node section10 = NodeFactory.createSection10();
+        Node section10 = NodeFactory.createNode();
         section10.installContribution("foo", 
"src/test/resources/sample-helloworld.jar", null, null, true);
         section10.removeFromDomainLevelComposite("foo/helloworld.composite");
         List<String> dcs = section10.getDeployedCompostes("foo");
@@ -103,7 +103,7 @@ public class Section10TestCase {
 
     @Test
     public void testInstallWithMetaData() throws ContributionReadException, 
ActivationException, ValidationException {
-        Node section10 = NodeFactory.createSection10();
+        Node section10 = NodeFactory.createNode();
         ((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");
@@ -113,4 +113,11 @@ public class Section10TestCase {
 //        Helloworld helloworldService = 
scaClientFactory.getService(Helloworld.class, "HelloworldComponent");
 //        Assert.assertEquals("Hello petra", 
helloworldService.sayHello("petra"));
     }
+
+    @Test
+    public void testURI() throws NoSuchServiceException, 
NoSuchDomainException, ContributionReadException, ActivationException, 
ValidationException {
+        Node section10 = NodeFactory.createNode();
+        String uri = 
section10.installContribution("src/test/resources/sample-helloworld.jar");
+        Assert.assertEquals("sample-helloworld", uri);
+    }
 }


Reply via email to