1 // 2 // Copyright (c) ZeroC, Inc. All rights reserved. 3 // 4 5 package test.Ice.custom; 6 7 public class Collocated extends test.TestHelper 8 { run(String[] args)9 public void run(String[] args) 10 { 11 Ice.Properties properties = createTestProperties(args); 12 properties.setProperty("Ice.Package.Test", "test.Ice.custom"); 13 properties.setProperty("Ice.CacheMessageBuffers", "0"); 14 try(Ice.Communicator communicator = initialize(properties)) 15 { 16 communicator.getProperties().setProperty("TestAdapter.Endpoints", getTestEndpoint(0)); 17 Ice.ObjectAdapter adapter = communicator.createObjectAdapter("TestAdapter"); 18 Ice.Object test = new TestI(communicator); 19 adapter.add(test, Ice.Util.stringToIdentity("test")); 20 AllTests.allTests(this); 21 } 22 } 23 } 24