diff options
author | Brent Eagles <brent@zeroc.com> | 2005-09-06 13:18:28 +0000 |
---|---|---|
committer | Brent Eagles <brent@zeroc.com> | 2005-09-06 13:18:28 +0000 |
commit | 6e9c8abb4255f9b983a3d8704ba66d5c4c169dbe (patch) | |
tree | 8aa933b1db31d6726712197ef0eedc7b24929b5b /java/test/Ice/exceptions/AllTests.java | |
parent | adding entry (diff) | |
download | ice-6e9c8abb4255f9b983a3d8704ba66d5c4c169dbe.tar.bz2 ice-6e9c8abb4255f9b983a3d8704ba66d5c4c169dbe.tar.xz ice-6e9c8abb4255f9b983a3d8704ba66d5c4c169dbe.zip |
adding a regression test for bug 422
Diffstat (limited to 'java/test/Ice/exceptions/AllTests.java')
-rw-r--r-- | java/test/Ice/exceptions/AllTests.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/java/test/Ice/exceptions/AllTests.java b/java/test/Ice/exceptions/AllTests.java index a45f8a33430..9f2e84cd7e6 100644 --- a/java/test/Ice/exceptions/AllTests.java +++ b/java/test/Ice/exceptions/AllTests.java @@ -686,6 +686,22 @@ public class AllTests public static ThrowerPrx allTests(Ice.Communicator communicator, boolean collocated) { + { + System.out.print("testing object adapter registration exceptions... "); + Ice.ObjectAdapter first = communicator.createObjectAdapter("TestAdapter0"); + try + { + Ice.ObjectAdapter second = communicator.createObjectAdapter("TestAdapter0"); + test(false); + } + catch(Ice.AlreadyRegisteredException ex) + { + // Expected + } + + System.out.println("ok"); + } + { System.out.print("testing servant registration exceptions... "); Ice.ObjectAdapter adapter = communicator.createObjectAdapter("TestAdapter1"); |