summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/custom/Collocated.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2006-05-01 18:31:55 +0000
committerDwayne Boone <dwayne@zeroc.com>2006-05-01 18:31:55 +0000
commit75ae8f6e9822d23c83c5e1efec31a82d27a0047b (patch)
tree59e538a9a7e601768574e3179390a73fbb0b933b /cpp/test/Ice/custom/Collocated.cpp
parentremoving redundant 'Client' portion from filter property names (diff)
downloadice-75ae8f6e9822d23c83c5e1efec31a82d27a0047b.tar.bz2
ice-75ae8f6e9822d23c83c5e1efec31a82d27a0047b.tar.xz
ice-75ae8f6e9822d23c83c5e1efec31a82d27a0047b.zip
Added ability to configure string converters
Diffstat (limited to 'cpp/test/Ice/custom/Collocated.cpp')
-rw-r--r--cpp/test/Ice/custom/Collocated.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/cpp/test/Ice/custom/Collocated.cpp b/cpp/test/Ice/custom/Collocated.cpp
index fc60bbaeae7..084a7999ec6 100644
--- a/cpp/test/Ice/custom/Collocated.cpp
+++ b/cpp/test/Ice/custom/Collocated.cpp
@@ -11,6 +11,7 @@
#include <TestCommon.h>
#include <TestI.h>
#include <WstringI.h>
+#include <StringConverterI.h>
using namespace std;
@@ -37,10 +38,12 @@ main(int argc, char** argv)
try
{
- Ice::PropertiesPtr properties = Ice::getDefaultProperties(argc, argv);
- properties->setProperty("TestAdapter.Endpoints", "default -p 12010 -t 10000");
-
- communicator = Ice::initialize(argc, argv);
+ Ice::InitializationData initData;
+ initData.properties = Ice::getDefaultProperties(argc, argv);
+ initData.properties->setProperty("TestAdapter.Endpoints", "default -p 12010 -t 10000");
+ initData.stringConverter = new Test::StringConverterI();
+ initData.wstringConverter = new Test::WstringConverterI();
+ communicator = Ice::initialize(argc, argv, initData);
status = run(argc, argv, communicator);
}
catch(const Ice::Exception& ex)