summaryrefslogtreecommitdiffstats
path: root/branches/sca-java-1.3.2/vtest
diff options
context:
space:
mode:
authorscottkurz <scottkurz@13f79535-47bb-0310-9956-ffa450edef68>2008-09-16 20:52:36 +0000
committerscottkurz <scottkurz@13f79535-47bb-0310-9956-ffa450edef68>2008-09-16 20:52:36 +0000
commit7f7f7919704f2733a3d3676f6f02e4bd4ef97f00 (patch)
tree46083bba2a873be179438df1298d0aabb66fc6e4 /branches/sca-java-1.3.2/vtest
parent6626c9e3a05c34f4a14be352a126ad5dc4192d18 (diff)
TUSCANY-2615 Account for possibility of binding impl wrappering exc in ServiceRuntimeExc
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@696050 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches/sca-java-1.3.2/vtest')
-rw-r--r--branches/sca-java-1.3.2/vtest/java-api/apis/componentcontext/src/test/java/org/apache/tuscany/sca/vtest/javaapi/apis/componentcontext/ComponentContextTestCase.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/branches/sca-java-1.3.2/vtest/java-api/apis/componentcontext/src/test/java/org/apache/tuscany/sca/vtest/javaapi/apis/componentcontext/ComponentContextTestCase.java b/branches/sca-java-1.3.2/vtest/java-api/apis/componentcontext/src/test/java/org/apache/tuscany/sca/vtest/javaapi/apis/componentcontext/ComponentContextTestCase.java
index 9bfe0c06e7..4e05aa2252 100644
--- a/branches/sca-java-1.3.2/vtest/java-api/apis/componentcontext/src/test/java/org/apache/tuscany/sca/vtest/javaapi/apis/componentcontext/ComponentContextTestCase.java
+++ b/branches/sca-java-1.3.2/vtest/java-api/apis/componentcontext/src/test/java/org/apache/tuscany/sca/vtest/javaapi/apis/componentcontext/ComponentContextTestCase.java
@@ -26,6 +26,8 @@ import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;
+import org.osoa.sca.ServiceRuntimeException;
+
/**
* This test class tests the ComponentContext interface described in 1.7.1 of
* the SCA Java Annotations & APIs Specification 1.0. Relevant sections of 1.4
@@ -164,6 +166,10 @@ public class ComponentContextTestCase {
a.illegalCast();
} catch (IllegalArgumentException iae) {
check = "IllegalCast";
+ } catch (ServiceRuntimeException sre) {
+ if (sre.getCause() instanceof IllegalArgumentException) {
+ check = "IllegalCast";
+ }
}
Assert.assertEquals("IllegalCast", check);
}