Home | History | Annotate | Download | only in pm

Lines Matching refs:TEST_STRING1

28     private final byte[] TEST_STRING1 = "This is a test".getBytes();
36 mTestStream1 = new ByteArrayInputStream(TEST_STRING1);
42 InputStream is = new LimitedLengthInputStream(mTestStream1, -1, TEST_STRING1.length);
82 byte[] temp = new byte[TEST_STRING1.length];
86 System.arraycopy(TEST_STRING1, offset, expected, 0, length);
111 checkReadBytesWithOffsetAndLength_WithString1(0, TEST_STRING1.length);
117 checkReadBytesWithOffsetAndLength_WithString1(3, TEST_STRING1.length - 3);
122 byte[] temp = new byte[TEST_STRING1.length + 10];
123 InputStream is = new LimitedLengthInputStream(mTestStream1, 0, TEST_STRING1.length + 10);
124 assertEquals(TEST_STRING1.length, is.read(temp, 0, TEST_STRING1.length + 10));
126 byte[] actual = new byte[TEST_STRING1.length];
128 assertTrue(Arrays.equals(TEST_STRING1, actual));
132 byte[] temp = new byte[TEST_STRING1.length];
136 System.arraycopy(TEST_STRING1, offset, expected, 0, length);
159 checkReadBytesWithOffsetAndLength_WithString1(0, TEST_STRING1.length);
164 checkReadBytesWithOffsetAndLength_WithString1(3, TEST_STRING1.length - 3);
171 assertEquals(TEST_STRING1[offset + i], is.read());
189 checkSingleByteRead_WithString1(0, TEST_STRING1.length);
194 checkSingleByteRead_WithString1(3, TEST_STRING1.length - 3);