summaryrefslogtreecommitdiff
path: root/csharp/test/Ice/exceptions
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2016-07-27 19:30:37 -0400
committerBernard Normier <bernard@zeroc.com>2016-07-27 19:30:37 -0400
commit883edab4361e58957796f25d5fc55cfb41f0f6ea (patch)
treefc90adc372b66bf0becf4c0912794c64af250a29 /csharp/test/Ice/exceptions
parentICE-7242 - Cross test updates (diff)
downloadice-883edab4361e58957796f25d5fc55cfb41f0f6ea.tar.bz2
ice-883edab4361e58957796f25d5fc55cfb41f0f6ea.tar.xz
ice-883edab4361e58957796f25d5fc55cfb41f0f6ea.zip
Deprecate Communicator::stringToIdentity and identityToString
Diffstat (limited to 'csharp/test/Ice/exceptions')
-rw-r--r--csharp/test/Ice/exceptions/AllTests.cs18
-rw-r--r--csharp/test/Ice/exceptions/Collocated.cs2
-rw-r--r--csharp/test/Ice/exceptions/Server.cs6
3 files changed, 13 insertions, 13 deletions
diff --git a/csharp/test/Ice/exceptions/AllTests.cs b/csharp/test/Ice/exceptions/AllTests.cs
index b1a1a14a922..ab9b1a9ee6f 100644
--- a/csharp/test/Ice/exceptions/AllTests.cs
+++ b/csharp/test/Ice/exceptions/AllTests.cs
@@ -98,10 +98,10 @@ public class AllTests : TestCommon.TestApp
communicator.getProperties().setProperty("TestAdapter1.Endpoints", "default");
Ice.ObjectAdapter adapter = communicator.createObjectAdapter("TestAdapter1");
Ice.Object obj = new EmptyI();
- adapter.add(obj, communicator.stringToIdentity("x"));
+ adapter.add(obj, Ice.Util.stringToIdentity("x"));
try
{
- adapter.add(obj, communicator.stringToIdentity("x"));
+ adapter.add(obj, Ice.Util.stringToIdentity("x"));
test(false);
}
catch(Ice.AlreadyRegisteredException)
@@ -110,7 +110,7 @@ public class AllTests : TestCommon.TestApp
try
{
- adapter.add(obj, communicator.stringToIdentity(""));
+ adapter.add(obj, Ice.Util.stringToIdentity(""));
test(false);
}
catch(Ice.IllegalIdentityException e)
@@ -120,17 +120,17 @@ public class AllTests : TestCommon.TestApp
try
{
- adapter.add(null, communicator.stringToIdentity("x"));
+ adapter.add(null, Ice.Util.stringToIdentity("x"));
test(false);
}
catch(Ice.IllegalServantException)
{
}
- adapter.remove(communicator.stringToIdentity("x"));
+ adapter.remove(Ice.Util.stringToIdentity("x"));
try
{
- adapter.remove(communicator.stringToIdentity("x"));
+ adapter.remove(Ice.Util.stringToIdentity("x"));
test(false);
}
catch(Ice.NotRegisteredException)
@@ -456,7 +456,7 @@ public class AllTests : TestCommon.TestApp
Flush();
{
- Ice.Identity id = communicator.stringToIdentity("does not exist");
+ Ice.Identity id = Ice.Util.stringToIdentity("does not exist");
try
{
ThrowerPrx thrower2 = ThrowerPrxHelper.uncheckedCast(thrower.ice_identity(id));
@@ -908,7 +908,7 @@ public class AllTests : TestCommon.TestApp
Flush();
{
- Ice.Identity id = communicator.stringToIdentity("does not exist");
+ Ice.Identity id = Ice.Util.stringToIdentity("does not exist");
ThrowerPrx thrower2 = ThrowerPrxHelper.uncheckedCast(thrower.ice_identity(id));
Callback cb = new Callback();
thrower2.begin_throwAasA(1).whenCompleted(
@@ -1179,7 +1179,7 @@ public class AllTests : TestCommon.TestApp
Flush();
{
- Ice.Identity id = communicator.stringToIdentity("does not exist");
+ Ice.Identity id = Ice.Util.stringToIdentity("does not exist");
ThrowerPrx thrower2 = ThrowerPrxHelper.uncheckedCast(thrower.ice_identity(id));
Callback cb = new Callback();
thrower2.begin_throwAasA(1).whenCompleted(
diff --git a/csharp/test/Ice/exceptions/Collocated.cs b/csharp/test/Ice/exceptions/Collocated.cs
index 9a391f35513..f5b4787dc7a 100644
--- a/csharp/test/Ice/exceptions/Collocated.cs
+++ b/csharp/test/Ice/exceptions/Collocated.cs
@@ -23,7 +23,7 @@ public class Collocated
communicator.getProperties().setProperty("TestAdapter.Endpoints", "default -p 12010");
Ice.ObjectAdapter adapter = communicator.createObjectAdapter("TestAdapter");
Ice.Object obj = new ThrowerI();
- adapter.add(obj, communicator.stringToIdentity("thrower"));
+ adapter.add(obj, Ice.Util.stringToIdentity("thrower"));
AllTests.allTests(communicator);
return 0;
}
diff --git a/csharp/test/Ice/exceptions/Server.cs b/csharp/test/Ice/exceptions/Server.cs
index 0b8885256a4..a8af5586552 100644
--- a/csharp/test/Ice/exceptions/Server.cs
+++ b/csharp/test/Ice/exceptions/Server.cs
@@ -53,9 +53,9 @@ public class Server
Ice.ObjectAdapter adapter2 = communicator.createObjectAdapter("TestAdapter2");
Ice.ObjectAdapter adapter3 = communicator.createObjectAdapter("TestAdapter3");
Ice.Object obj = new ThrowerI();
- adapter.add(obj, communicator.stringToIdentity("thrower"));
- adapter2.add(obj, communicator.stringToIdentity("thrower"));
- adapter3.add(obj, communicator.stringToIdentity("thrower"));
+ adapter.add(obj, Ice.Util.stringToIdentity("thrower"));
+ adapter2.add(obj, Ice.Util.stringToIdentity("thrower"));
+ adapter3.add(obj, Ice.Util.stringToIdentity("thrower"));
adapter.activate();
adapter2.activate();
adapter3.activate();