Lines Matching refs:data
65 byte[] data = new byte[] { -127, -100, -50, -10, -1, 0, 1, 10, 50, 127 };
68 cos.write(data);
71 if (!Arrays.equals(result, data)) {
81 byte[] data = new byte[] { -127, -100, -50, -10, -1, 0, 1, 10, 50, 127 };
84 for (int i = 0; i < data.length; i++) {
85 cos.write(data[i]);
89 if (!Arrays.equals(result, data)) {
90 fail("CipherOutputStream wrote incorrect data.");
99 byte[] data = new byte[] { -127, -100, -50, -10, -1, 0, 1, 10, 50, 127 };
102 cos.write(data);
105 if (!Arrays.equals(result, data)) {
106 fail("CipherOutputStream wrote incorrect data.");
121 byte[] data = new byte[] { -127, -100, -50, -10, -1, 0, 1, 10, 50, 127 };
124 for (int i = 0; i < data.length; i++) {
125 cos.write(data, i, 1);
129 if (!Arrays.equals(result, data)) {
130 fail("CipherOutputStream wrote incorrect data.");
160 * flush() method testing. Tests that method flushes the data to the
164 byte[] data = new byte[] { -127, -100, -50, -10, -1, 0, 1, 10, 50, 127 };
167 cos.write(data);
170 if (!Arrays.equals(result, data)) {
171 fail("CipherOutputStream did not flush the data.");
180 byte[] data = new byte[] { -127, -100, -50, -10, -1, 0, 1, 10, 50, 127 };
183 cos.write(data);
186 if (!Arrays.equals(result, data)) {
187 fail("CipherOutputStream did not flush the data.");