diff options
Diffstat (limited to 'csharp/test/IceBox/configuration/AllTests.cs')
-rw-r--r-- | csharp/test/IceBox/configuration/AllTests.cs | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/csharp/test/IceBox/configuration/AllTests.cs b/csharp/test/IceBox/configuration/AllTests.cs index d8345ced05b..5d791a960ad 100644 --- a/csharp/test/IceBox/configuration/AllTests.cs +++ b/csharp/test/IceBox/configuration/AllTests.cs @@ -10,23 +10,19 @@ using System; using Test; -public class AllTests +public class AllTests : TestCommon.AllTests { - private static void - test(bool b) + public static void allTests(TestCommon.Application app) { - if(!b) - { - throw new Exception(); - } - } - - public static void allTests(Ice.Communicator communicator) - { - TestIntfPrx service1 = TestIntfPrxHelper.uncheckedCast(communicator.stringToProxy("test:tcp -p 12010")); - TestIntfPrx service2 = TestIntfPrxHelper.uncheckedCast(communicator.stringToProxy("test:tcp -p 12011")); - TestIntfPrx service3 = TestIntfPrxHelper.uncheckedCast(communicator.stringToProxy("test:tcp -p 12012")); - TestIntfPrx service4 = TestIntfPrxHelper.uncheckedCast(communicator.stringToProxy("test:tcp -p 12013")); + Ice.Communicator communicator = app.communicator(); + TestIntfPrx service1 = TestIntfPrxHelper.uncheckedCast(communicator.stringToProxy("test:" + + app.getTestEndpoint(0))); + TestIntfPrx service2 = TestIntfPrxHelper.uncheckedCast(communicator.stringToProxy("test:" + + app.getTestEndpoint(1))); + TestIntfPrx service3 = TestIntfPrxHelper.uncheckedCast(communicator.stringToProxy("test:" + + app.getTestEndpoint(2))); + TestIntfPrx service4 = TestIntfPrxHelper.uncheckedCast(communicator.stringToProxy("test:" + + app.getTestEndpoint(3))); if(service1.getProperty("IceBox.InheritProperties").Equals("")) { |