diff options
Diffstat (limited to 'cpp/test/Ice/exceptions/AllTests.cpp')
-rw-r--r-- | cpp/test/Ice/exceptions/AllTests.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/cpp/test/Ice/exceptions/AllTests.cpp b/cpp/test/Ice/exceptions/AllTests.cpp index 605d1f5f9a7..81a093f5c2c 100644 --- a/cpp/test/Ice/exceptions/AllTests.cpp +++ b/cpp/test/Ice/exceptions/AllTests.cpp @@ -1024,6 +1024,24 @@ allTests(const Ice::CommunicatorPtr& communicator) { } + try + { + adapter->add(obj, communicator->stringToIdentity("")); + } + catch(const Ice::IllegalIdentityException& ex) + { + test(ex.id.name == ""); + } + + try + { + adapter->add(0, communicator->stringToIdentity("x")); + } + catch(const Ice::IllegalServantException&) + { + } + + adapter->remove(communicator->stringToIdentity("x")); try { |