summaryrefslogtreecommitdiff
path: root/java/test/Ice/exceptions/AllTests.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/test/Ice/exceptions/AllTests.java')
-rw-r--r--java/test/Ice/exceptions/AllTests.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/java/test/Ice/exceptions/AllTests.java b/java/test/Ice/exceptions/AllTests.java
index 0c0256b9bb7..bc556b0b5eb 100644
--- a/java/test/Ice/exceptions/AllTests.java
+++ b/java/test/Ice/exceptions/AllTests.java
@@ -1431,6 +1431,24 @@ public class AllTests
{
}
+ try
+ {
+ adapter.add(obj, communicator.stringToIdentity(""));
+ test(false);
+ }
+ catch(Ice.IllegalIdentityException ex)
+ {
+ test(ex.id.name.equals(""));
+ }
+ try
+ {
+ adapter.add(null, communicator.stringToIdentity("x"));
+ test(false);
+ }
+ catch(Ice.IllegalServantException ex)
+ {
+ }
+
adapter.remove(communicator.stringToIdentity("x"));
try
{