summaryrefslogtreecommitdiff
path: root/java-compat/test/src/main/java/test/Ice/exceptions/AllTests.java
diff options
context:
space:
mode:
Diffstat (limited to 'java-compat/test/src/main/java/test/Ice/exceptions/AllTests.java')
-rw-r--r--java-compat/test/src/main/java/test/Ice/exceptions/AllTests.java39
1 files changed, 25 insertions, 14 deletions
diff --git a/java-compat/test/src/main/java/test/Ice/exceptions/AllTests.java b/java-compat/test/src/main/java/test/Ice/exceptions/AllTests.java
index d00bd7bef7c..bb5e82db6f4 100644
--- a/java-compat/test/src/main/java/test/Ice/exceptions/AllTests.java
+++ b/java-compat/test/src/main/java/test/Ice/exceptions/AllTests.java
@@ -1131,6 +1131,10 @@ public class AllTests
catch(Ice.ConnectionLostException ex)
{
}
+ catch(Ice.UnknownLocalException ex)
+ {
+ // Expected with JS bidir server
+ }
catch(Ice.SocketException ex)
{
// This can be raised if the connection is closed during the client's call to write().
@@ -1141,24 +1145,31 @@ public class AllTests
test(false);
}
- ThrowerPrx thrower2 = ThrowerPrxHelper.uncheckedCast(
- communicator.stringToProxy("thrower:" + app.getTestEndpoint(1)));
try
{
- thrower2.throwMemoryLimitException(new byte[2 * 1024 * 1024]); // 2MB (no limits)
- }
- catch(Ice.MemoryLimitException ex)
- {
- }
- ThrowerPrx thrower3 = ThrowerPrxHelper.uncheckedCast(
- communicator.stringToProxy("thrower:" + app.getTestEndpoint(2)));
- try
- {
- thrower3.throwMemoryLimitException(new byte[1024]); // 1KB limit
- test(false);
+ ThrowerPrx thrower2 = ThrowerPrxHelper.uncheckedCast(
+ communicator.stringToProxy("thrower:" + app.getTestEndpoint(1)));
+ try
+ {
+ thrower2.throwMemoryLimitException(new byte[2 * 1024 * 1024]); // 2MB (no limits)
+ }
+ catch(Ice.MemoryLimitException ex)
+ {
+ }
+ ThrowerPrx thrower3 = ThrowerPrxHelper.uncheckedCast(
+ communicator.stringToProxy("thrower:" + app.getTestEndpoint(2)));
+ try
+ {
+ thrower3.throwMemoryLimitException(new byte[1024]); // 1KB limit
+ test(false);
+ }
+ catch(Ice.ConnectionLostException ex)
+ {
+ }
}
- catch(Ice.ConnectionLostException ex)
+ catch(Ice.ConnectionRefusedException ex)
{
+ // Expected with JS bidir server
}
out.println("ok");