diff options
author | Matthew Newhook <matthew@zeroc.com> | 2014-10-23 16:28:09 -0230 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2014-10-23 16:28:09 -0230 |
commit | f6bb0396e7d8fd12ed50f72ab9fc99436d418576 (patch) | |
tree | ee6ef1cb32f2523839f210eb9ec3b924b97d5998 /java/test/Ice/ami/AllTests.java | |
parent | Add Object.equals, and minor fix to HashMap.equals (diff) | |
download | ice-f6bb0396e7d8fd12ed50f72ab9fc99436d418576.tar.bz2 ice-f6bb0396e7d8fd12ed50f72ab9fc99436d418576.tar.xz ice-f6bb0396e7d8fd12ed50f72ab9fc99436d418576.zip |
More gradle changes.
Moved android stuff to its own package.
Moved java tests to src/main/java/test subdirectory.
Diffstat (limited to 'java/test/Ice/ami/AllTests.java')
-rw-r--r-- | java/test/Ice/ami/AllTests.java | 83 |
1 files changed, 0 insertions, 83 deletions
diff --git a/java/test/Ice/ami/AllTests.java b/java/test/Ice/ami/AllTests.java deleted file mode 100644 index cfb6be791c3..00000000000 --- a/java/test/Ice/ami/AllTests.java +++ /dev/null @@ -1,83 +0,0 @@ -// ********************************************************************** -// -// 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.ami; - -import java.io.PrintWriter; - -import test.Ice.ami.Test.TestIntfPrx; -import test.Ice.ami.Test.TestIntfPrxHelper; -import test.Ice.ami.Test.TestIntfControllerPrx; -import test.Ice.ami.Test.TestIntfControllerPrxHelper; -import test.Util.Application; - -public class AllTests -{ - private static void - test(boolean b) - { - if(!b) - { - throw new RuntimeException(); - } - } - - public static void - allTests(Application app, boolean collocated) - { - Ice.Communicator communicator = app.communicator(); - PrintWriter out = app.getWriter(); - - String sref = "test:default -p 12010"; - Ice.ObjectPrx obj = communicator.stringToProxy(sref); - test(obj != null); - - TestIntfPrx p = TestIntfPrxHelper.uncheckedCast(obj); - - sref = "testController:default -p 12011"; - obj = communicator.stringToProxy(sref); - test(obj != null); - - TestIntfControllerPrx testController = TestIntfControllerPrxHelper.uncheckedCast(obj); - - out.println("testing with new AMI mapping... "); - test.Ice.ami.AMI.run(app, communicator, collocated, p, testController); - - // - // Use reflection to load TwowaysLambdaAMI as that is only supported with Java >= 1.8 - // - try - { - Class<?> cls = IceInternal.Util.findClass("test.Ice.ami.lambda.AMI", null); - if(cls != null) - { - java.lang.reflect.Method run = cls.getDeclaredMethod("run", - new Class<?>[]{test.Util.Application.class, Ice.Communicator.class, boolean.class, TestIntfPrx.class, - TestIntfControllerPrx.class}); - out.println("testing with lambda AMI mapping... "); - out.flush(); - run.invoke(null, app, communicator, collocated, p, testController); - } - } - catch(java.lang.NoSuchMethodException ex) - { - throw new RuntimeException(ex); - } - catch(java.lang.IllegalAccessException ex) - { - throw new RuntimeException(ex); - } - catch(java.lang.reflect.InvocationTargetException ex) - { - throw new RuntimeException(ex); - } - - p.shutdown(); - } -} |