You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by an...@apache.org on 2010/05/27 09:23:15 UTC

svn commit: r948699 - /tuscany/sca-java-2.x/contrib/modules/section10/src/test/java/org/apache/tuscany/sca/something/Section10TestCase.java

Author: antelder
Date: Thu May 27 07:23:14 2010
New Revision: 948699

URL: http://svn.apache.org/viewvc?rev=948699&view=rev
Log:
Add new exceptions

Modified:
    tuscany/sca-java-2.x/contrib/modules/section10/src/test/java/org/apache/tuscany/sca/something/Section10TestCase.java

Modified: tuscany/sca-java-2.x/contrib/modules/section10/src/test/java/org/apache/tuscany/sca/something/Section10TestCase.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/contrib/modules/section10/src/test/java/org/apache/tuscany/sca/something/Section10TestCase.java?rev=948699&r1=948698&r2=948699&view=diff
==============================================================================
--- tuscany/sca-java-2.x/contrib/modules/section10/src/test/java/org/apache/tuscany/sca/something/Section10TestCase.java (original)
+++ tuscany/sca-java-2.x/contrib/modules/section10/src/test/java/org/apache/tuscany/sca/something/Section10TestCase.java Thu May 27 07:23:14 2010
@@ -24,6 +24,7 @@ import java.util.List;
 import junit.framework.Assert;
 
 import org.apache.tuscany.sca.contribution.processor.ContributionReadException;
+import org.apache.tuscany.sca.monitor.ValidationException;
 import org.apache.tuscany.sca.runtime.ActivationException;
 import org.junit.Test;
 import org.oasisopen.sca.NoSuchDomainException;
@@ -32,7 +33,7 @@ import org.oasisopen.sca.NoSuchServiceEx
 public class Section10TestCase {
 
     @Test
-    public void testInstallDeployable() throws NoSuchServiceException, NoSuchDomainException, ContributionReadException, ActivationException {
+    public void testInstallDeployable() throws NoSuchServiceException, NoSuchDomainException, ContributionReadException, ActivationException, ValidationException {
         Section10 section10 = Section10Factory.createSection10();
         section10.installContribution("src/test/resources/sample-helloworld.jar");
 
@@ -41,7 +42,7 @@ public class Section10TestCase {
     }
 
     @Test
-    public void testInstallWithDependent() throws NoSuchServiceException, NoSuchDomainException, ContributionReadException, ActivationException {
+    public void testInstallWithDependent() throws NoSuchServiceException, ContributionReadException, ActivationException, ValidationException {
         Section10 section10 = Section10Factory.createSection10();
         section10.installContribution("/Tuscany/svn/2.x-trunk/itest/T3558/src/test/resources/sample-store.jar");
         section10.installContribution("/Tuscany/svn/2.x-trunk/itest/T3558/src/test/resources/sample-store-client.jar");
@@ -51,7 +52,7 @@ public class Section10TestCase {
     }
 
     @Test
-    public void testInstallNoDeployable() throws NoSuchServiceException, NoSuchDomainException, ContributionReadException, ActivationException {
+    public void testInstallNoDeployable() throws NoSuchServiceException, NoSuchDomainException, ContributionReadException, ActivationException, ValidationException {
         Section10 section10 = Section10Factory.createSection10();
         String contributionURI = section10.installContribution("src/test/resources/sample-helloworld-nodeployable.jar");
 
@@ -69,7 +70,7 @@ public class Section10TestCase {
     }
 
     @Test
-    public void testGetInstalledContributions() throws NoSuchServiceException, NoSuchDomainException, ContributionReadException, ActivationException {
+    public void testGetInstalledContributions() throws NoSuchServiceException, NoSuchDomainException, ContributionReadException, ActivationException, ValidationException {
         Section10 section10 = Section10Factory.createSection10();
         section10.installContribution("foo", "src/test/resources/sample-helloworld-nodeployable.jar");
         List<String> ics = section10.getInstalledContributions();
@@ -78,7 +79,7 @@ public class Section10TestCase {
     }
 
     @Test
-    public void testGetDeployedCompostes() throws NoSuchServiceException, NoSuchDomainException, ContributionReadException, MalformedURLException, ActivationException {
+    public void testGetDeployedCompostes() throws NoSuchServiceException, NoSuchDomainException, ContributionReadException, MalformedURLException, ActivationException, ValidationException {
         Section10 section10 = Section10Factory.createSection10();
         section10.installContribution("foo", "src/test/resources/sample-helloworld.jar");
         List<String> dcs = section10.getDeployedCompostes("foo");
@@ -87,7 +88,7 @@ public class Section10TestCase {
     }
 
     @Test
-    public void testRemoveComposte() throws NoSuchServiceException, NoSuchDomainException, ContributionReadException, MalformedURLException, ActivationException {
+    public void testRemoveComposte() throws NoSuchServiceException, NoSuchDomainException, ContributionReadException, MalformedURLException, ActivationException, ValidationException {
         Section10 section10 = Section10Factory.createSection10();
         section10.installContribution("foo", "src/test/resources/sample-helloworld.jar");
         section10.removeFromDomainLevelComposite("foo/helloworld.composite");