diff options
Diffstat (limited to 'java/test/Ice/inheritance/Collocated.java')
-rw-r--r-- | java/test/Ice/inheritance/Collocated.java | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/java/test/Ice/inheritance/Collocated.java b/java/test/Ice/inheritance/Collocated.java new file mode 100644 index 00000000000..39281e18d86 --- /dev/null +++ b/java/test/Ice/inheritance/Collocated.java @@ -0,0 +1,58 @@ +// ********************************************************************** +// +// Copyright (c) 2001 +// MutableRealms, Inc. +// Huntsville, AL, USA +// +// All Rights Reserved +// +// ********************************************************************** + +public class Collocated +{ + private static int + run(String[] args, Ice.Communicator communicator) + { + String endpts = "default -p 12345 -t 2000"; + Ice.ObjectAdapter adapter = communicator.createObjectAdapterWithEndpoints("TestAdapter", endpts); + Ice.Object object = new InitialI(adapter); + adapter.add(object, Ice.Util.stringToIdentity("initial")); + + AllTests.allTests(communicator); + + return 0; + } + + public static void + main(String[] args) + { + int status = 0; + Ice.Communicator communicator = null; + + try + { + communicator = Ice.Util.initialize(args); + status = run(args, communicator); + } + catch(Ice.LocalException ex) + { + ex.printStackTrace(); + status = 1; + } + + if (communicator != null) + { + try + { + communicator.destroy(); + } + catch(Ice.LocalException ex) + { + ex.printStackTrace(); + status = 1; + } + } + + System.exit(status); + } +} |