diff options
author | Matthew Newhook <matthew@zeroc.com> | 2005-08-22 06:38:54 +0000 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2005-08-22 06:38:54 +0000 |
commit | 8878eb2d6e1da17022cd85f99e8dc216b0dd3b96 (patch) | |
tree | ddb11af48c2648fc76addb48785a2ae489bb6655 /cppe/test/IceE/operations/Collocated.cpp | |
parent | moving MIDP UUID generation to main srcs (diff) | |
download | ice-8878eb2d6e1da17022cd85f99e8dc216b0dd3b96.tar.bz2 ice-8878eb2d6e1da17022cd85f99e8dc216b0dd3b96.tar.xz ice-8878eb2d6e1da17022cd85f99e8dc216b0dd3b96.zip |
Simplify operations test.
Diffstat (limited to 'cppe/test/IceE/operations/Collocated.cpp')
-rw-r--r-- | cppe/test/IceE/operations/Collocated.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cppe/test/IceE/operations/Collocated.cpp b/cppe/test/IceE/operations/Collocated.cpp index ea96564540a..d5ff91b6c5a 100644 --- a/cppe/test/IceE/operations/Collocated.cpp +++ b/cppe/test/IceE/operations/Collocated.cpp @@ -42,8 +42,9 @@ public: setCommunicator(Ice::initializeWithProperties(argc, argv, properties)); Ice::ObjectAdapterPtr adapter = communicator()->createObjectAdapter("TestAdapter"); - Ice::ObjectPtr object = new MyDerivedClassI(adapter, Ice::stringToIdentity("test")); - adapter->add(object, Ice::stringToIdentity("test")); + Ice::Identity id = Ice::stringToIdentity("test"); + adapter->add(new MyDerivedClassI(adapter, id), id); + adapter->add(new TestCheckedCastI, Ice::stringToIdentity("context")); adapter->activate(); Test::MyClassPrx allTests(const Ice::CommunicatorPtr&); |