summaryrefslogtreecommitdiff
path: root/java/test/IceBox/configuration/AllTests.java
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2009-03-24 12:31:31 -0230
committerMatthew Newhook <matthew@zeroc.com>2009-03-24 12:31:31 -0230
commit4cc5d77c383b6c91c3af9fe44df9687bb9b15580 (patch)
tree64ce3d6cf35b15497de50f298f7225a8c72f64b6 /java/test/IceBox/configuration/AllTests.java
parentMerge commit 'origin/R3_3_branch' (diff)
downloadice-4cc5d77c383b6c91c3af9fe44df9687bb9b15580.tar.bz2
ice-4cc5d77c383b6c91c3af9fe44df9687bb9b15580.tar.xz
ice-4cc5d77c383b6c91c3af9fe44df9687bb9b15580.zip
Merged android-testsuite branch.
Diffstat (limited to 'java/test/IceBox/configuration/AllTests.java')
-rw-r--r--java/test/IceBox/configuration/AllTests.java27
1 files changed, 16 insertions, 11 deletions
diff --git a/java/test/IceBox/configuration/AllTests.java b/java/test/IceBox/configuration/AllTests.java
index 7c71df16120..3f78413a201 100644
--- a/java/test/IceBox/configuration/AllTests.java
+++ b/java/test/IceBox/configuration/AllTests.java
@@ -7,7 +7,12 @@
//
// **********************************************************************
-import Test.*;
+package test.IceBox.configuration;
+
+import java.io.PrintWriter;
+
+import test.IceBox.configuration.Test.TestIntfPrx;
+import test.IceBox.configuration.Test.TestIntfPrxHelper;
public class AllTests
{
@@ -21,7 +26,7 @@ public class AllTests
}
public static void
- allTests(Ice.Communicator communicator)
+ allTests(Ice.Communicator communicator, PrintWriter out)
{
TestIntfPrx service1 = TestIntfPrxHelper.uncheckedCast(communicator.stringToProxy("test:tcp -p 12010"));
TestIntfPrx service2 = TestIntfPrxHelper.uncheckedCast(communicator.stringToProxy("test:tcp -p 12011"));
@@ -30,8 +35,8 @@ public class AllTests
if(service1.getProperty("IceBox.InheritProperties").equals(""))
{
- System.out.print("testing service properties... ");
- System.out.flush();
+ out.print("testing service properties... ");
+ out.flush();
test(service1.getProperty("Ice.ProgramName").equals("IceBox-Service1"));
test(service1.getProperty("Service").equals("1"));
@@ -50,10 +55,10 @@ public class AllTests
String[] args2 = {"--Service1.ArgProp=1"};
test(java.util.Arrays.equals(service2.getArgs(), args2));
- System.out.println("ok");
+ out.println("ok");
- System.out.print("testing with shared communicator... ");
- System.out.flush();
+ out.print("testing with shared communicator... ");
+ out.flush();
test(service3.getProperty("Ice.ProgramName").equals("IceBox-SharedCommunicator"));
test(service3.getProperty("Service").equals("4"));
@@ -70,12 +75,12 @@ public class AllTests
String[] args4 = {"--Service3.Prop=2"};
test(java.util.Arrays.equals(service4.getArgs(), args4));
- System.out.println("ok");
+ out.println("ok");
}
else
{
- System.out.print("testing property inheritance... ");
- System.out.flush();
+ out.print("testing property inheritance... ");
+ out.flush();
test(service1.getProperty("Ice.ProgramName").equals("IceBox2-Service1"));
test(service1.getProperty("ServerProp").equals("1"));
@@ -90,7 +95,7 @@ public class AllTests
test(service2.getProperty("UnsetMe").equals(""));
test(service2.getProperty("Service2.Prop").equals("1"));
- System.out.println("ok");
+ out.println("ok");
}
}
}