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 /cpp/test/Ice/exceptions/AllTests.cpp | |
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 'cpp/test/Ice/exceptions/AllTests.cpp')
-rw-r--r-- | cpp/test/Ice/exceptions/AllTests.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/cpp/test/Ice/exceptions/AllTests.cpp b/cpp/test/Ice/exceptions/AllTests.cpp index 22f0c720a0c..26a04ae58a2 100644 --- a/cpp/test/Ice/exceptions/AllTests.cpp +++ b/cpp/test/Ice/exceptions/AllTests.cpp @@ -561,6 +561,21 @@ typedef IceUtil::Handle<AMI_WrongOperation_noSuchOperationI> AMI_WrongOperation_ ThrowerPrx allTests(const Ice::CommunicatorPtr& communicator, bool collocated) { + cout << "testing object adapter registration exceptions... " << flush; + { + Ice::ObjectAdapterPtr first = communicator->createObjectAdapter("TestAdapter0"); + try + { + Ice::ObjectAdapterPtr second = communicator->createObjectAdapter("TestAdapter0"); + test(false); + } + catch(const Ice::AlreadyRegisteredException&) + { + // Expected + } + } + cout << "ok" << endl; + cout << "testing servant registration exceptions... " << flush; { Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter1"); |