diff options
author | Marc Laukien <marc@zeroc.com> | 2001-12-06 20:50:34 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2001-12-06 20:50:34 +0000 |
commit | 69ab9df0b58233ca893407b0ef9fae5376413c06 (patch) | |
tree | 6806c4360e50f519a6cf085e78ad81c503bba932 /cpp/test/Ice/exceptions/AllTests.cpp | |
parent | default protocol (diff) | |
download | ice-69ab9df0b58233ca893407b0ef9fae5376413c06.tar.bz2 ice-69ab9df0b58233ca893407b0ef9fae5376413c06.tar.xz ice-69ab9df0b58233ca893407b0ef9fae5376413c06.zip |
Ice.DefaultHost, Ice.DefaultProtocol
Diffstat (limited to 'cpp/test/Ice/exceptions/AllTests.cpp')
-rw-r--r-- | cpp/test/Ice/exceptions/AllTests.cpp | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/cpp/test/Ice/exceptions/AllTests.cpp b/cpp/test/Ice/exceptions/AllTests.cpp index bd2b65646f1..343430d3b57 100644 --- a/cpp/test/Ice/exceptions/AllTests.cpp +++ b/cpp/test/Ice/exceptions/AllTests.cpp @@ -49,27 +49,7 @@ ThrowerPrx allTests(const Ice::CommunicatorPtr& communicator, bool collocated) { cout << "testing stringToProxy... " << flush; - string ref; - - Ice::PropertiesPtr properties = communicator->getProperties(); - - string protocol = properties->getProperty("Ice.Protocol"); - string secure; - - if (protocol.empty()) - { - protocol = "tcp"; - } - - if (protocol.compare("ssl") == 0) - { - secure = " -s "; - } - - string endpts = protocol + " -p 12345 -t 2000"; - - ref = "thrower" + secure + ":" + endpts; - + string ref = "thrower:default -p 12345 -t 2000"; Ice::ObjectPrx base = communicator->stringToProxy(ref); test(base); cout << "ok" << endl; |