diff options
Diffstat (limited to 'sca-java-1.x/trunk/itest/jaxws/src/main/java/jtest/impl/TestClientImpl.java')
-rw-r--r-- | sca-java-1.x/trunk/itest/jaxws/src/main/java/jtest/impl/TestClientImpl.java | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/sca-java-1.x/trunk/itest/jaxws/src/main/java/jtest/impl/TestClientImpl.java b/sca-java-1.x/trunk/itest/jaxws/src/main/java/jtest/impl/TestClientImpl.java index 7249cfc7d1..2eadd43a86 100644 --- a/sca-java-1.x/trunk/itest/jaxws/src/main/java/jtest/impl/TestClientImpl.java +++ b/sca-java-1.x/trunk/itest/jaxws/src/main/java/jtest/impl/TestClientImpl.java @@ -22,6 +22,7 @@ package jtest.impl; import org.osoa.sca.annotations.Reference;
import org.osoa.sca.annotations.Service;
+import jtest.AbstractException;
import jtest.TestClient;
import jtest.TestConcrete1;
import jtest.TestConcrete2;
@@ -36,9 +37,18 @@ public class TestClientImpl implements TestClient { @Reference
protected TestService ref;
- public void runTest() {
+ public void runAbstractTypeTest() {
TestConcrete1 data1 = new TestConcrete1();
TestConcrete2 data2 = new TestConcrete2();
ref.sendAbstract(data1, data2);
}
+
+ public void runAbstractExceptionTest() {
+ try {
+ ref.throwAbstract();
+ } catch (AbstractException e) {
+ System.out.println("Caught exception " + e);
+ System.out.println(e.getGreeting());
+ }
+ }
}
|