diff options
author | Benoit Foucher <benoit@zeroc.com> | 2013-01-07 16:20:00 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2013-01-07 16:20:00 +0100 |
commit | f68bda81245047d672879dbb90e55b4446ffa71b (patch) | |
tree | 4334915e140af70af74f1d8b2a32eba6bf97f57f /java/test/Ice/exceptions/AllTests.java | |
parent | Added missing RemoteObserverI.java file (diff) | |
download | ice-f68bda81245047d672879dbb90e55b4446ffa71b.tar.bz2 ice-f68bda81245047d672879dbb90e55b4446ffa71b.tar.xz ice-f68bda81245047d672879dbb90e55b4446ffa71b.zip |
Fixed ICE-5150: assert in OutgoingAsync._finished, fixed CHANGES
Diffstat (limited to 'java/test/Ice/exceptions/AllTests.java')
-rw-r--r-- | java/test/Ice/exceptions/AllTests.java | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/java/test/Ice/exceptions/AllTests.java b/java/test/Ice/exceptions/AllTests.java index 801ab5addde..d15c956ab79 100644 --- a/java/test/Ice/exceptions/AllTests.java +++ b/java/test/Ice/exceptions/AllTests.java @@ -21,6 +21,7 @@ import test.Ice.exceptions.Test.AMI_Thrower_throwCasA; import test.Ice.exceptions.Test.AMI_Thrower_throwCasB; import test.Ice.exceptions.Test.AMI_Thrower_throwCasC; import test.Ice.exceptions.Test.AMI_Thrower_throwLocalException; +import test.Ice.exceptions.Test.AMI_Thrower_throwLocalExceptionIdempotent; import test.Ice.exceptions.Test.AMI_Thrower_throwNonIceException; import test.Ice.exceptions.Test.AMI_Thrower_throwUndeclaredA; import test.Ice.exceptions.Test.AMI_Thrower_throwUndeclaredB; @@ -42,6 +43,7 @@ import test.Ice.exceptions.Test.Callback_Thrower_throwCasA; import test.Ice.exceptions.Test.Callback_Thrower_throwCasB; import test.Ice.exceptions.Test.Callback_Thrower_throwCasC; import test.Ice.exceptions.Test.Callback_Thrower_throwLocalException; +import test.Ice.exceptions.Test.Callback_Thrower_throwLocalExceptionIdempotent; import test.Ice.exceptions.Test.Callback_Thrower_throwNonIceException; import test.Ice.exceptions.Test.Callback_Thrower_throwUndeclaredA; import test.Ice.exceptions.Test.Callback_Thrower_throwUndeclaredB; @@ -1245,6 +1247,9 @@ public class AllTests catch(Ice.UnknownLocalException ex) { } + catch(Ice.OperationNotExistException ex) + { + } catch(Throwable ex) { ex.printStackTrace(); @@ -1820,6 +1825,23 @@ public class AllTests test(false); } + try + { + thrower.throwLocalExceptionIdempotent(); + test(false); + } + catch(Ice.UnknownLocalException ex) + { + } + catch(Ice.OperationNotExistException ex) + { + } + catch(Throwable ex) + { + ex.printStackTrace(); + test(false); + } + out.println("ok"); out.print("catching unknown non-Ice exception... "); @@ -2179,6 +2201,25 @@ public class AllTests cb.check(); } + { + final Callback_Thrower_throwLocalExceptionI cb = new Callback_Thrower_throwLocalExceptionI(); + thrower.begin_throwLocalExceptionIdempotent(new Callback_Thrower_throwLocalExceptionIdempotent() + { + @Override + public void response() + { + cb.response(); + } + + @Override + public void exception(Ice.LocalException exc) + { + cb.exception(exc); + } + }); + cb.check(); + } + out.println("ok"); out.print("catching unknown non-Ice exception with new AMI mapping... "); |