diff options
Diffstat (limited to 'cs/test/Ice/servantLocator/Collocated.cs')
-rwxr-xr-x | cs/test/Ice/servantLocator/Collocated.cs | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/cs/test/Ice/servantLocator/Collocated.cs b/cs/test/Ice/servantLocator/Collocated.cs new file mode 100755 index 00000000000..fcb518de41f --- /dev/null +++ b/cs/test/Ice/servantLocator/Collocated.cs @@ -0,0 +1,41 @@ +// ********************************************************************** +// +// Copyright (c) 2003-2007 ZeroC, Inc. All rights reserved. +// +// This copy of Ice is licensed to you under the terms described in the +// ICE_LICENSE file included in this distribution. +// +// ********************************************************************** + +using Test; + +public class Collocated +{ + internal class TestClient : Ice.Application + { + public override int run(string[] args) + { + communicator().getProperties().setProperty("Ice.OA.TestAdapter.Endpoints", "default -p 12010 -t 10000"); + 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(), communicator().stringToIdentity("asm")); + + AllTests.allTests(communicator(), true); + + return 0; + } + } + + public static void Main(string[] args) + { + TestClient app = new TestClient(); + int result = app.main(args); + if(result != 0) + { + System.Environment.Exit(result); + } + } +} |