diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2006-05-09 13:07:41 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2006-05-09 13:07:41 +0000 |
commit | 197b6de9281b52d0b53c4b3fa3312e371b4469a9 (patch) | |
tree | bae93f8155da0770f5dd45d12ef1160ee99aed54 /cppe/test/IceE/exceptions/AllTests.cpp | |
parent | Added identityToString and stringToIdentity to Communicator (diff) | |
download | ice-197b6de9281b52d0b53c4b3fa3312e371b4469a9.tar.bz2 ice-197b6de9281b52d0b53c4b3fa3312e371b4469a9.tar.xz ice-197b6de9281b52d0b53c4b3fa3312e371b4469a9.zip |
Fixed proxy and identity t/from string functions to use string converters
Diffstat (limited to 'cppe/test/IceE/exceptions/AllTests.cpp')
-rw-r--r-- | cppe/test/IceE/exceptions/AllTests.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cppe/test/IceE/exceptions/AllTests.cpp b/cppe/test/IceE/exceptions/AllTests.cpp index 3a646af07ea..c6fdcb91482 100644 --- a/cppe/test/IceE/exceptions/AllTests.cpp +++ b/cppe/test/IceE/exceptions/AllTests.cpp @@ -99,20 +99,20 @@ allTests(const Ice::CommunicatorPtr& communicator) { Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter1"); Ice::ObjectPtr obj = new EmptyI; - adapter->add(obj, Ice::stringToIdentity("x")); + adapter->add(obj, communicator->stringToIdentity("x")); try { - adapter->add(obj, Ice::stringToIdentity("x")); + adapter->add(obj, communicator->stringToIdentity("x")); test(false); } catch(const Ice::AlreadyRegisteredException&) { } - adapter->remove(Ice::stringToIdentity("x")); + adapter->remove(communicator->stringToIdentity("x")); try { - adapter->remove(Ice::stringToIdentity("x")); + adapter->remove(communicator->stringToIdentity("x")); test(false); } catch(const Ice::NotRegisteredException&) @@ -401,7 +401,7 @@ allTests(const Ice::CommunicatorPtr& communicator) tprintf("catching object not exist exception..."); - Ice::Identity id = Ice::stringToIdentity("does not exist"); + Ice::Identity id = communicator->stringToIdentity("does not exist"); try { ThrowerPrx thrower2 = ThrowerPrx::uncheckedCast(thrower->ice_identity(id)); |