Searched refs:bao (Results 1 - 7 of 7) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
H A DThrowableTest.java75 ByteArrayOutputStream bao = new ByteArrayOutputStream();
76 PrintStream ps = new PrintStream(bao);
83 String s = fixStacktrace(new String(bao.toByteArray(), 0, bao.size()));
85 bao.reset();
92 String s2 = fixStacktrace(new String(bao.toByteArray(), 0, bao.size()));
130 ByteArrayOutputStream bao = new ByteArrayOutputStream();
131 PrintStream ps = new PrintStream(bao);
137 String s = new String(bao
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
H A DPrintWriterTest.java60 ByteArrayOutputStream bao; field in class:PrintWriterTest
76 br = new BufferedReader(new Support_StringReader(bao.toString()));
94 pw = new PrintWriter(bao, true);
98 br = new BufferedReader(new Support_StringReader(bao.toString()));
103 br = new BufferedReader(new Support_StringReader(bao.toString()));
238 assertTrue("Failed to flush", new String(bao.toByteArray())
253 br = new BufferedReader(new Support_StringReader(bao.toString()));
277 assertEquals("Wrote incorrect char string", "c", new String(bao.toByteArray())
289 assertTrue("Wrote incorrect double string", new String(bao
302 new String(bao
[all...]
H A DObjectOutputStreamTest.java572 protected ByteArrayOutputStream bao; field in class:ObjectOutputStreamTest
613 int size = bao.size();
615 assertTrue("Data flushed already", bao.size() == size);
617 assertTrue("Failed to flush data", bao.size() > size);
642 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray()));
661 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray()));
707 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray()));
734 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray()));
750 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray()));
764 ois = new ObjectInputStream(new ByteArrayInputStream(bao
[all...]
H A DSerializationStressTest.java91 protected transient ByteArrayOutputStream bao; field in class:SerializationStressTest
229 return new ByteArrayInputStream(bao.toByteArray());
253 oos = new ObjectOutputStream(bao = new ByteArrayOutputStream());
284 oos = new ObjectOutputStream(bao = new ByteArrayOutputStream());
314 oos = new ObjectOutputStream(bao = new ByteArrayOutputStream());
315 int size = bao.size();
317 assertTrue("Data flushed already", bao.size() == size);
319 assertTrue("Failed to flush data", bao.size() > size);
/libcore/luni/src/test/java/libcore/java/io/
H A DOldObjectOutputStreamTest.java144 protected ByteArrayOutputStream bao; field in class:OldObjectOutputStreamTest
175 int outputSize = bao.size();
179 bao.size() == outputSize);
183 bao.size() > outputSize);
222 int size = bao.size();
224 assertTrue("Test 1: Data already flushed.", bao.size() == size);
226 assertTrue("Test 2: Failed to flush data.", bao.size() > size);
254 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray()));
290 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray()));
370 oos = new ObjectOutputStream(bao
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
H A DInvocationTargetExceptionTest.java221 ByteArrayOutputStream bao = new ByteArrayOutputStream();
222 PrintStream ps = new PrintStream(bao);
229 String s = new String(bao.toByteArray());
245 ByteArrayOutputStream bao = new ByteArrayOutputStream();
246 PrintStream ps = new PrintStream(bao);
250 String s = bao.toString();
276 ByteArrayOutputStream bao = new ByteArrayOutputStream();
277 pw = new PrintWriter(bao);
283 s = bao.toString();
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/io/
H A DObjectInputStreamTest.java128 ByteArrayOutputStream bao; field in class:ObjectInputStreamTest
140 Support_ASimpleInputStream sis = new Support_ASimpleInputStream(bao.toByteArray());
172 Support_ASimpleInputStream sis = new Support_ASimpleInputStream(bao.toByteArray());
190 Support_ASimpleInputStream sis = new Support_ASimpleInputStream(bao.toByteArray());
217 Support_ASimpleInputStream sis = new Support_ASimpleInputStream(bao.toByteArray());
235 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray()));
257 Support_ASimpleInputStream sis = new Support_ASimpleInputStream(bao.toByteArray());
274 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray()));
280 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray()));
295 Support_ASimpleInputStream sis = new Support_ASimpleInputStream(bao
[all...]

Completed in 1319 milliseconds