summaryrefslogtreecommitdiff
path: root/java/test/Ice/exceptions/AllTests.java
diff options
context:
space:
mode:
authorBrent Eagles <brent@zeroc.com>2005-09-07 16:14:20 +0000
committerBrent Eagles <brent@zeroc.com>2005-09-07 16:14:20 +0000
commit4e631700d66c51a96210e2bcbd8b3f63d8b0b9f4 (patch)
tree5b0d75ebdea90cbdfb6c3955b601ece88ccbceee /java/test/Ice/exceptions/AllTests.java
parentBug 371: closeSocket can hide real errors (diff)
downloadice-4e631700d66c51a96210e2bcbd8b3f63d8b0b9f4.tar.bz2
ice-4e631700d66c51a96210e2bcbd8b3f63d8b0b9f4.tar.xz
ice-4e631700d66c51a96210e2bcbd8b3f63d8b0b9f4.zip
revising fixes for bug 431
Diffstat (limited to 'java/test/Ice/exceptions/AllTests.java')
-rw-r--r--java/test/Ice/exceptions/AllTests.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/java/test/Ice/exceptions/AllTests.java b/java/test/Ice/exceptions/AllTests.java
index a222f8669f8..1b23f7637d5 100644
--- a/java/test/Ice/exceptions/AllTests.java
+++ b/java/test/Ice/exceptions/AllTests.java
@@ -698,6 +698,19 @@ public class AllTests
{
// Expected
}
+
+ communicator.getProperties().setProperty("TestAdapter0.Endpoints", "");
+ try
+ {
+ Ice.ObjectAdapter second =
+ communicator.createObjectAdapterWithEndpoints("TestAdapter0", "ssl -h foo -p 12346 -t 10000");
+ test(false);
+ }
+ catch(Ice.AlreadyRegisteredException ex)
+ {
+ // Expected
+ }
+ test(communicator.getProperties().getProperty("TestAdapter0.Endpoints").equals(""));
first.deactivate();
System.out.println("ok");
}