summaryrefslogtreecommitdiff
path: root/java/test/Ice/operations/BatchOneways.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/test/Ice/operations/BatchOneways.java')
-rw-r--r--java/test/Ice/operations/BatchOneways.java70
1 files changed, 35 insertions, 35 deletions
diff --git a/java/test/Ice/operations/BatchOneways.java b/java/test/Ice/operations/BatchOneways.java
index 2ce6418d423..86944c0b9c9 100644
--- a/java/test/Ice/operations/BatchOneways.java
+++ b/java/test/Ice/operations/BatchOneways.java
@@ -21,55 +21,55 @@ class BatchOneways
static void
batchOneways(Test.MyClassPrx p)
{
- final byte[] bs1 = new byte[10 * 1024];
- final byte[] bs2 = new byte[99 * 1024];
- final byte[] bs3 = new byte[100 * 1024];
+ final byte[] bs1 = new byte[10 * 1024];
+ final byte[] bs2 = new byte[99 * 1024];
+ final byte[] bs3 = new byte[100 * 1024];
- try
+ try
{
p.opByteSOneway(bs1);
- test(true);
+ test(true);
+ }
+ catch(Ice.MemoryLimitException ex)
+ {
+ test(false);
}
- catch(Ice.MemoryLimitException ex)
- {
- test(false);
- }
- try
+ try
{
p.opByteSOneway(bs2);
- test(true);
+ test(true);
+ }
+ catch(Ice.MemoryLimitException ex)
+ {
+ test(false);
}
- catch(Ice.MemoryLimitException ex)
- {
- test(false);
- }
- try
+ try
{
p.opByteSOneway(bs3);
- test(false);
+ test(false);
+ }
+ catch(Ice.MemoryLimitException ex)
+ {
+ test(true);
}
- catch(Ice.MemoryLimitException ex)
- {
- test(true);
- }
- Test.MyClassPrx batch = Test.MyClassPrxHelper.uncheckedCast(p.ice_batchOneway());
+ Test.MyClassPrx batch = Test.MyClassPrxHelper.uncheckedCast(p.ice_batchOneway());
- for(int i = 0 ; i < 30 ; ++i)
- {
- try
- {
- batch.opByteSOneway(bs1);
- test(true);
- }
- catch(Ice.MemoryLimitException ex)
- {
- test(false);
- }
- }
+ for(int i = 0 ; i < 30 ; ++i)
+ {
+ try
+ {
+ batch.opByteSOneway(bs1);
+ test(true);
+ }
+ catch(Ice.MemoryLimitException ex)
+ {
+ test(false);
+ }
+ }
- batch.ice_getConnection().flushBatchRequests();
+ batch.ice_getConnection().flushBatchRequests();
}
}