diff options
Diffstat (limited to 'java/test/Ice/interrupt/Client.java')
-rw-r--r-- | java/test/Ice/interrupt/Client.java | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/java/test/Ice/interrupt/Client.java b/java/test/Ice/interrupt/Client.java new file mode 100644 index 00000000000..247e69d035e --- /dev/null +++ b/java/test/Ice/interrupt/Client.java @@ -0,0 +1,46 @@ +// ********************************************************************** +// +// Copyright (c) 2003-2014 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. +// +// ********************************************************************** + +package test.Ice.interrupt; + +public class Client extends test.Util.Application +{ + @Override + public int run(String[] args) + { + try + { + AllTests.allTests(this, communicator(), getWriter()); + } + catch (InterruptedException e) + { + e.printStackTrace(); + throw new RuntimeException(); + } + return 0; + } + + @Override + protected Ice.InitializationData getInitData(Ice.StringSeqHolder argsH) + { + Ice.InitializationData initData = new Ice.InitializationData(); + initData.properties = Ice.Util.createProperties(argsH); + initData.properties.setProperty("Ice.Package.Test", "test.Ice.interrupt"); + initData.properties.setProperty("Ice.BackgroundIO", "1"); + return initData; + } + + public static void main(String[] args) + { + Client app = new Client(); + int result = app.main("Client", args); + System.gc(); + System.exit(result); + } +} |