1 // **********************************************************************
3 // Copyright (c) 2003-2011 ZeroC, Inc. All rights reserved.
5 // This copy of Ice is licensed to you under the terms described in the
6 // ICE_LICENSE file included in this distribution.
8 // **********************************************************************
10 package test
.Ice
.exceptions
;
12 public class Collocated
extends test
.Util
.Application
17 Ice
.Communicator communicator
= communicator();
18 Ice
.ObjectAdapter adapter
= communicator
.createObjectAdapter("TestAdapter");
19 Ice
.Object object
= new ThrowerI();
20 adapter
.add(object
, communicator
.stringToIdentity("thrower"));
22 AllTests
.allTests(communicator
, true, getWriter());
27 protected Ice
.InitializationData
getInitData(Ice
.StringSeqHolder argsH
)
29 Ice
.InitializationData initData
= new Ice
.InitializationData();
30 initData
.properties
= Ice
.Util
.createProperties(argsH
);
31 initData
.properties
.setProperty("Ice.Package.Test", "test.Ice.exceptions");
32 initData
.properties
.setProperty("TestAdapter.Endpoints", "default -p 12010");
39 Collocated app
= new Collocated();
40 int result
= app
.main("Collocated", args
);