diff options
Diffstat (limited to 'csharp/test/Ice/servantLocator/Collocated.cs')
-rw-r--r-- | csharp/test/Ice/servantLocator/Collocated.cs | 30 |
1 files changed, 13 insertions, 17 deletions
diff --git a/csharp/test/Ice/servantLocator/Collocated.cs b/csharp/test/Ice/servantLocator/Collocated.cs index b3acd7dfb99..4885035d001 100644 --- a/csharp/test/Ice/servantLocator/Collocated.cs +++ b/csharp/test/Ice/servantLocator/Collocated.cs @@ -16,31 +16,27 @@ using System.Reflection; [assembly: AssemblyDescription("Ice test")] [assembly: AssemblyCompany("ZeroC, Inc.")] -public class Collocated +public class Collocated : TestCommon.Application { - internal class App : Ice.Application + public override int run(string[] args) { - public override int run(string[] args) - { - communicator().getProperties().setProperty("TestAdapter.Endpoints", "default -p 12010"); - communicator().getProperties().setProperty("Ice.Warn.Dispatch", "0"); + communicator().getProperties().setProperty("TestAdapter.Endpoints", getTestEndpoint(0)); + communicator().getProperties().setProperty("Ice.Warn.Dispatch", "0"); - Ice.ObjectAdapter adapter = communicator().createObjectAdapter("TestAdapter"); - adapter.addServantLocator(new ServantLocatorI("category"), "category"); - adapter.addServantLocator(new ServantLocatorI(""), ""); - adapter.add(new TestI(), Ice.Util.stringToIdentity("asm")); - adapter.add(new TestActivationI(), Ice.Util.stringToIdentity("test/activation")); + Ice.ObjectAdapter adapter = communicator().createObjectAdapter("TestAdapter"); + adapter.addServantLocator(new ServantLocatorI("category"), "category"); + adapter.addServantLocator(new ServantLocatorI(""), ""); + adapter.add(new TestI(), Ice.Util.stringToIdentity("asm")); + adapter.add(new TestActivationI(), Ice.Util.stringToIdentity("test/activation")); - AllTests.allTests(communicator()); + AllTests.allTests(this); - return 0; - } + return 0; } public static int Main(string[] args) { - Ice.InitializationData data = new Ice.InitializationData(); - App app = new App(); - return app.main(args, data); + Collocated app = new Collocated(); + return app.runmain(args); } } |