diff options
author | Mark Spruiell <mes@zeroc.com> | 2010-05-21 14:03:30 -0700 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2010-05-21 14:03:30 -0700 |
commit | 01e3d1af5c5e19d74d391a8998495df59f6c4ce8 (patch) | |
tree | a94485661f2eb28ce4b1cb29fabf34c3fddf7c8d /java/test/Ice/exceptions/AllTests.java | |
parent | Various changes for 3.4.1 installers (diff) | |
download | ice-01e3d1af5c5e19d74d391a8998495df59f6c4ce8.tar.bz2 ice-01e3d1af5c5e19d74d391a8998495df59f6c4ce8.tar.xz ice-01e3d1af5c5e19d74d391a8998495df59f6c4ce8.zip |
bug 4733 - fixing bugs in AMD exceptions
Diffstat (limited to 'java/test/Ice/exceptions/AllTests.java')
-rw-r--r-- | java/test/Ice/exceptions/AllTests.java | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/java/test/Ice/exceptions/AllTests.java b/java/test/Ice/exceptions/AllTests.java index a53320170b7..9d3fd5260ac 100644 --- a/java/test/Ice/exceptions/AllTests.java +++ b/java/test/Ice/exceptions/AllTests.java @@ -1841,6 +1841,43 @@ public class AllTests out.println("ok"); + out.print("testing asynchronous exceptions... "); + out.flush(); + + try + { + thrower.throwAfterResponse(); + } + catch(Ice.LocalException ex) + { + test(false); + } + catch(Throwable ex) + { + out.println(ex); + test(false); + } + + try + { + thrower.throwAfterException(); + test(false); + } + catch(A ex) + { + } + catch(Ice.LocalException ex) + { + test(false); + } + catch(Throwable ex) + { + out.println(ex); + test(false); + } + + out.println("ok"); + if(!collocated) { out.print("catching exact types with AMI... "); |