summaryrefslogtreecommitdiff
path: root/java/test/Ice/retry/AllTests.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/test/Ice/retry/AllTests.java')
-rw-r--r--java/test/Ice/retry/AllTests.java82
1 files changed, 41 insertions, 41 deletions
diff --git a/java/test/Ice/retry/AllTests.java b/java/test/Ice/retry/AllTests.java
index 28385951ee1..e7c2f061ecd 100644
--- a/java/test/Ice/retry/AllTests.java
+++ b/java/test/Ice/retry/AllTests.java
@@ -94,8 +94,8 @@ public class AllTests
public void
ice_exception(Ice.LocalException ex)
{
- test(ex instanceof Ice.ConnectionLostException);
- callback.called();
+ test(ex instanceof Ice.ConnectionLostException);
+ callback.called();
}
public boolean
@@ -115,7 +115,7 @@ public class AllTests
String ref = "retry:default -p 12010 -t 10000";
Ice.ObjectPrx base1 = communicator.stringToProxy(ref);
test(base1 != null);
- Ice.ObjectPrx base2 = communicator.stringToProxy(ref);
+ Ice.ObjectPrx base2 = communicator.stringToProxy(ref);
test(base2 != null);
out.println("ok");
@@ -123,51 +123,51 @@ public class AllTests
out.flush();
Test.RetryPrx retry1 = Test.RetryPrxHelper.checkedCast(base1);
test(retry1 != null);
- test(retry1.equals(base1));
+ test(retry1.equals(base1));
Test.RetryPrx retry2 = Test.RetryPrxHelper.checkedCast(base2);
test(retry2 != null);
- test(retry2.equals(base2));
+ test(retry2.equals(base2));
out.println("ok");
- out.print("calling regular operation with first proxy... ");
- out.flush();
- retry1.op(false);
- out.println("ok");
-
- out.print("calling operation to kill connection with second proxy... ");
- out.flush();
- try
- {
- retry2.op(true);
- test(false);
- }
- catch(Ice.ConnectionLostException ex)
- {
- out.println("ok");
- }
+ out.print("calling regular operation with first proxy... ");
+ out.flush();
+ retry1.op(false);
+ out.println("ok");
+
+ out.print("calling operation to kill connection with second proxy... ");
+ out.flush();
+ try
+ {
+ retry2.op(true);
+ test(false);
+ }
+ catch(Ice.ConnectionLostException ex)
+ {
+ out.println("ok");
+ }
out.print("calling regular operation with first proxy again... ");
out.flush();
- retry1.op(false);
- out.println("ok");
-
- AMIRegular cb1 = new AMIRegular();
- AMIException cb2 = new AMIException();
-
- out.print("calling regular AMI operation with first proxy... ");
- retry1.op_async(cb1, false);
- test(cb1.check());
- out.println("ok");
-
- out.print("calling AMI operation to kill connection with second proxy... ");
- retry2.op_async(cb2, true);
- test(cb2.check());
- out.println("ok");
-
- out.print("calling regular AMI operation with first proxy again... ");
- retry1.op_async(cb1, false);
- test(cb1.check());
- out.println("ok");
+ retry1.op(false);
+ out.println("ok");
+
+ AMIRegular cb1 = new AMIRegular();
+ AMIException cb2 = new AMIException();
+
+ out.print("calling regular AMI operation with first proxy... ");
+ retry1.op_async(cb1, false);
+ test(cb1.check());
+ out.println("ok");
+
+ out.print("calling AMI operation to kill connection with second proxy... ");
+ retry2.op_async(cb2, true);
+ test(cb2.check());
+ out.println("ok");
+
+ out.print("calling regular AMI operation with first proxy again... ");
+ retry1.op_async(cb1, false);
+ test(cb1.check());
+ out.println("ok");
return retry1;
}