diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2008-10-23 14:42:59 -0230 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2008-10-23 14:42:59 -0230 |
commit | 845b03ddfa20fef3b57818086b6ec7266d8db147 (patch) | |
tree | f082980f7fa6c50006f24bedf29423b2bbf9739b /java/test/Ice/udp/Client.java | |
parent | Fixed locator implementation to not serialize anymore locator request for non... (diff) | |
download | ice-845b03ddfa20fef3b57818086b6ec7266d8db147.tar.bz2 ice-845b03ddfa20fef3b57818086b6ec7266d8db147.tar.xz ice-845b03ddfa20fef3b57818086b6ec7266d8db147.zip |
Bug 3164 - add udp test
Diffstat (limited to 'java/test/Ice/udp/Client.java')
-rw-r--r-- | java/test/Ice/udp/Client.java | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/java/test/Ice/udp/Client.java b/java/test/Ice/udp/Client.java new file mode 100644 index 00000000000..e12fd8918ad --- /dev/null +++ b/java/test/Ice/udp/Client.java @@ -0,0 +1,55 @@ +// ********************************************************************** +// +// Copyright (c) 2003-2008 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. +// +// ********************************************************************** + +import Test.*; + +public class Client +{ + private static int + run(String[] args, Ice.Communicator communicator) + { + TestIntfPrx obj = AllTests.allTests(communicator); + obj.shutdown(); + 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(Exception ex) + { + ex.printStackTrace(); + status = 1; + } + + if(communicator != null) + { + try + { + communicator.destroy(); + } + catch(Ice.LocalException ex) + { + ex.printStackTrace(); + status = 1; + } + } + + System.gc(); + System.exit(status); + } +} |