summaryrefslogtreecommitdiff
path: root/java/test/Ice/stream/Client.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/test/Ice/stream/Client.java')
-rw-r--r--java/test/Ice/stream/Client.java35
1 files changed, 35 insertions, 0 deletions
diff --git a/java/test/Ice/stream/Client.java b/java/test/Ice/stream/Client.java
index 375be462cdc..437eb3e6559 100644
--- a/java/test/Ice/stream/Client.java
+++ b/java/test/Ice/stream/Client.java
@@ -136,6 +136,41 @@ public class Client
System.out.flush();
{
+ byte[] data = new byte[0];
+ in = Ice.Util.createInputStream(communicator, data);
+ in.destroy();
+ }
+
+ {
+ out = Ice.Util.createOutputStream(communicator);
+ out.startEncapsulation();
+ out.writeBool(true);
+ out.endEncapsulation();
+ byte[] data = out.finished();
+ out.destroy();
+
+ in = Ice.Util.createInputStream(communicator, data);
+ in.startEncapsulation();
+ test(in.readBool());
+ in.endEncapsulation();
+ in.destroy();
+ }
+
+ {
+ byte[] data = new byte[0];
+ in = Ice.Util.createInputStream(communicator, data);
+ try
+ {
+ in.readBool();
+ test(false);
+ }
+ catch(Ice.UnmarshalOutOfBoundsException ex)
+ {
+ }
+ in.destroy();
+ }
+
+ {
out = Ice.Util.createOutputStream(communicator);
out.writeBool(true);
byte[] data = out.finished();