summaryrefslogtreecommitdiff
path: root/cppe/test/IceE/operations/Collocated.cpp
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2005-07-15 15:47:09 +0000
committerMatthew Newhook <matthew@zeroc.com>2005-07-15 15:47:09 +0000
commitbc02b784807e8d979acb3a628039eaf6b5aefb75 (patch)
treedc489510e9bc4c18e24c5459cc2a029e64688a75 /cppe/test/IceE/operations/Collocated.cpp
parentadd hello world client midlet (diff)
downloadice-bc02b784807e8d979acb3a628039eaf6b5aefb75.tar.bz2
ice-bc02b784807e8d979acb3a628039eaf6b5aefb75.tar.xz
ice-bc02b784807e8d979acb3a628039eaf6b5aefb75.zip
Updated README. Fixed MFC screen size. Fixed test suite screen size.
Started mods for using an optional configuration file.
Diffstat (limited to 'cppe/test/IceE/operations/Collocated.cpp')
-rw-r--r--cppe/test/IceE/operations/Collocated.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/cppe/test/IceE/operations/Collocated.cpp b/cppe/test/IceE/operations/Collocated.cpp
index 243a9dddd95..22a1a32aad3 100644
--- a/cppe/test/IceE/operations/Collocated.cpp
+++ b/cppe/test/IceE/operations/Collocated.cpp
@@ -17,49 +17,49 @@ using namespace std;
class OperationsTestApplication : public TestApplication
{
public:
-
- OperationsTestApplication() :
- TestApplication("operations collocated")
- {
- }
+
+ OperationsTestApplication() :
+ TestApplication("operations collocated")
+ {
+ }
virtual int
run(int argc, char* argv[])
{
- Ice::PropertiesPtr properties = Ice::getDefaultProperties(argc, argv);
-
+ Ice::PropertiesPtr properties = Ice::createProperties();
+
//
// We must set MessageSizeMax to an explicit values, because
// we run tests to check whether IceE.MemoryLimitException is
// raised as expected.
//
- properties->setProperty("IceE.MessageSizeMax", "100");
- properties->setProperty("CheckedCastAdapter.Endpoints", "default -p 12346 -t 10000");
- properties->setProperty("TestAdapter.Endpoints", "default -p 12345 -t 10000");
- //properties->setProperty("IceE.Trace.Protocol", "10");
- //properties->setProperty("IceE.Trace.Network", "10");
-
- setCommunicator(Ice::initialize(argc, argv));
+ properties->setProperty("IceE.MessageSizeMax", "100");
+ properties->setProperty("TestAdapter.Endpoints", "default -p 12345 -t 10000");
+ //properties->setProperty("IceE.Trace.Network", "5");
+ //properties->setProperty("IceE.Trace.Protocol", "5");
+
+ try
+ {
+ properties->load("config");
+ }
+ catch(const Ice::FileException&)
+ {
+ }
+
+ 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"));
adapter->activate();
- //
- // Make a separate adapter with a servant locator. We use this to test
- // that ::Ice::Context is correctly passed to checkedCast() operation.
- //
- adapter = communicator()->createObjectAdapter("CheckedCastAdapter");
- adapter->activate();
-
Test::MyClassPrx allTests(const Ice::CommunicatorPtr&);
allTests(communicator());
return EXIT_SUCCESS;
}
};
-
+
#ifdef _WIN32_WCE
int WINAPI