summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/proxy/AllTests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/Ice/proxy/AllTests.cpp')
-rw-r--r--cpp/test/Ice/proxy/AllTests.cpp34
1 files changed, 32 insertions, 2 deletions
diff --git a/cpp/test/Ice/proxy/AllTests.cpp b/cpp/test/Ice/proxy/AllTests.cpp
index 269988a9119..82655d278e5 100644
--- a/cpp/test/Ice/proxy/AllTests.cpp
+++ b/cpp/test/Ice/proxy/AllTests.cpp
@@ -236,7 +236,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
try
{
- b1 = communicator->stringToProxy("test:tcp@adapterId");
+ communicator->stringToProxy("test:tcp@adapterId");
test(false);
}
catch(const Ice::EndpointParseException&)
@@ -254,7 +254,37 @@ allTests(const Ice::CommunicatorPtr& communicator)
//}
try
{
- b1 = communicator->stringToProxy("test::tcp");
+ communicator->stringToProxy("test: :tcp");
+ test(false);
+ }
+ catch(const Ice::EndpointParseException&)
+ {
+ }
+
+ //
+ // Test invalid endpoint syntax
+ //
+ try
+ {
+ communicator->createObjectAdapterWithEndpoints("BadAdapter", " : ");
+ test(false);
+ }
+ catch(const Ice::EndpointParseException&)
+ {
+ }
+
+ try
+ {
+ communicator->createObjectAdapterWithEndpoints("BadAdapter", "tcp: ");
+ test(false);
+ }
+ catch(const Ice::EndpointParseException&)
+ {
+ }
+
+ try
+ {
+ communicator->createObjectAdapterWithEndpoints("BadAdapter", ":tcp");
test(false);
}
catch(const Ice::EndpointParseException&)