summaryrefslogtreecommitdiff
path: root/cppe/test/IceE/operations/Server.cpp
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2005-08-22 06:38:54 +0000
committerMatthew Newhook <matthew@zeroc.com>2005-08-22 06:38:54 +0000
commit8878eb2d6e1da17022cd85f99e8dc216b0dd3b96 (patch)
treeddb11af48c2648fc76addb48785a2ae489bb6655 /cppe/test/IceE/operations/Server.cpp
parentmoving MIDP UUID generation to main srcs (diff)
downloadice-8878eb2d6e1da17022cd85f99e8dc216b0dd3b96.tar.bz2
ice-8878eb2d6e1da17022cd85f99e8dc216b0dd3b96.tar.xz
ice-8878eb2d6e1da17022cd85f99e8dc216b0dd3b96.zip
Simplify operations test.
Diffstat (limited to 'cppe/test/IceE/operations/Server.cpp')
-rw-r--r--cppe/test/IceE/operations/Server.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/cppe/test/IceE/operations/Server.cpp b/cppe/test/IceE/operations/Server.cpp
index 6b7560e144f..b60bff92b1a 100644
--- a/cppe/test/IceE/operations/Server.cpp
+++ b/cppe/test/IceE/operations/Server.cpp
@@ -36,10 +36,13 @@ 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();
+ adapter->activate();
+
#ifndef _WIN32_WCE
communicator()->waitForShutdown();
#endif