Home
last modified time | relevance | path

Searched refs:assertArrayEquals (Results 1 – 25 of 136) sorted by relevance

123456

/external/testng/src/main/java/org/testng/internal/junit/
DArrayAsserts.java20 public static void assertArrayEquals(String message, Object[] expecteds, in assertArrayEquals() method in ArrayAsserts
38 public static void assertArrayEquals(Object[] expecteds, Object[] actuals) { in assertArrayEquals() method in ArrayAsserts
39 assertArrayEquals(null, expecteds, actuals); in assertArrayEquals()
54 public static void assertArrayEquals(String message, byte[] expecteds, in assertArrayEquals() method in ArrayAsserts
68 public static void assertArrayEquals(byte[] expecteds, byte[] actuals) { in assertArrayEquals() method in ArrayAsserts
69 assertArrayEquals(null, expecteds, actuals); in assertArrayEquals()
84 public static void assertArrayEquals(String message, char[] expecteds, in assertArrayEquals() method in ArrayAsserts
98 public static void assertArrayEquals(char[] expecteds, char[] actuals) { in assertArrayEquals() method in ArrayAsserts
99 assertArrayEquals(null, expecteds, actuals); in assertArrayEquals()
114 public static void assertArrayEquals(String message, short[] expecteds, in assertArrayEquals() method in ArrayAsserts
[all …]
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/zip/
DZip64SupportIT.java22 import static org.junit.Assert.assertArrayEquals;
224 assertArrayEquals(new byte[] { in write100KFiles()
246 assertArrayEquals(new byte[] { in write100KFiles()
265 assertArrayEquals(new byte[] { in write100KFiles()
294 assertArrayEquals(new byte[] { in write100KFiles()
398 assertArrayEquals("CDH start", new byte[] {
416 assertArrayEquals("CDH original size", new byte[] {
420 assertArrayEquals("CDH original size", new byte[] {
426 assertArrayEquals("CDH rest", new byte[] {
447 assertArrayEquals("CDH extra", new byte[] {
[all …]
DDataDescriptorTest.java34 import static org.junit.Assert.assertArrayEquals;
64 assertArrayEquals(new byte[] { 20, 0 }, versionInLFH); in writesDataDescriptorForDeflatedEntryOnUnseekableOutput()
67 assertArrayEquals(new byte[] { 8, 8 }, gpbInLFH); in writesDataDescriptorForDeflatedEntryOnUnseekableOutput()
69 assertArrayEquals(new byte[12], crcAndSizedInLFH); in writesDataDescriptorForDeflatedEntryOnUnseekableOutput()
73 assertArrayEquals(new byte[] { 20, 0 }, versionInCDH); in writesDataDescriptorForDeflatedEntryOnUnseekableOutput()
75 assertArrayEquals(new byte[] { 8, 8 }, gpbInCDH); in writesDataDescriptorForDeflatedEntryOnUnseekableOutput()
108 assertArrayEquals(new byte[] { 20, 0 }, versionInLFH); in doesntWriteDataDescriptorForDeflatedEntryOnSeekableOutput()
111 assertArrayEquals(new byte[] { 0, 8 }, gpbInLFH); in doesntWriteDataDescriptorForDeflatedEntryOnSeekableOutput()
115 assertArrayEquals(new byte[] { 20, 0 }, versionInCDH); in doesntWriteDataDescriptorForDeflatedEntryOnSeekableOutput()
117 assertArrayEquals(new byte[] { 0, 8 }, gpbInCDH); in doesntWriteDataDescriptorForDeflatedEntryOnSeekableOutput()
[all …]
/external/junit/src/main/java/org/junit/
DAssert.java281 public static void assertArrayEquals(String message, Object[] expecteds, in assertArrayEquals() method in Assert
297 public static void assertArrayEquals(Object[] expecteds, Object[] actuals) { in assertArrayEquals() method in Assert
298 assertArrayEquals(null, expecteds, actuals); in assertArrayEquals()
312 public static void assertArrayEquals(String message, boolean[] expecteds, in assertArrayEquals() method in Assert
326 public static void assertArrayEquals(boolean[] expecteds, boolean[] actuals) { in assertArrayEquals() method in Assert
327 assertArrayEquals(null, expecteds, actuals); in assertArrayEquals()
339 public static void assertArrayEquals(String message, byte[] expecteds, in assertArrayEquals() method in Assert
351 public static void assertArrayEquals(byte[] expecteds, byte[] actuals) { in assertArrayEquals() method in Assert
352 assertArrayEquals(null, expecteds, actuals); in assertArrayEquals()
364 public static void assertArrayEquals(String message, char[] expecteds, in assertArrayEquals() method in Assert
[all …]
/external/rappor/client/javatest/com/google/android/rappor/
DHmacDrbgTest.java3 import static org.junit.Assert.assertArrayEquals;
43 assertArrayEquals(expected, out2); in testHmacDrbgNistCase0()
62 assertArrayEquals(expected, out2); in testHmacDrbgNistCase1()
81 assertArrayEquals(expected, out2); in testHmacDrbgNistCase2()
100 assertArrayEquals(expected, out2); in testHmacDrbgNistCase3()
119 assertArrayEquals(expected, out2); in testHmacDrbgNistCase4()
138 assertArrayEquals(expected, out2); in testHmacDrbgNistCase5()
157 assertArrayEquals(expected, out2); in testHmacDrbgNistCase6()
176 assertArrayEquals(expected, out2); in testHmacDrbgNistCase7()
195 assertArrayEquals(expected, out2); in testHmacDrbgNistCase8()
[all …]
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/array/
DPrimitiveArrayTest.java54 Assert.assertArrayEquals(bytes, ((ByteArr) wrappers.get(0)).getBytes()); in testValidConstructor()
55 Assert.assertArrayEquals(shorts, ((ShortArr) wrappers.get(1)).getShorts()); in testValidConstructor()
56 Assert.assertArrayEquals(ints, ((IntArr) wrappers.get(2)).getInts()); in testValidConstructor()
57 Assert.assertArrayEquals(longs, ((LongArr) wrappers.get(3)).getLongs()); in testValidConstructor()
58 Assert.assertArrayEquals(floats, ((FloatArr) wrappers.get(4)).getFloats(), 0.001f); in testValidConstructor()
59 Assert.assertArrayEquals(doubles, ((DoubleArr) wrappers.get(5)).getDoubles(), 0.001); in testValidConstructor()
60 Assert.assertArrayEquals(chars, ((CharArr) wrappers.get(6)).getChars()); in testValidConstructor()
61 assertArrayEquals(bools, ((BooleanArr) wrappers.get(7)).getBools()); in testValidConstructor()
68 private void assertArrayEquals(boolean[] expected, boolean[] actuals) { in assertArrayEquals() method in PrimitiveArrayTest
125 Assert.assertArrayEquals(new float[] { 3, 5 }, in testPromotion()
[all …]
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/compressors/lz4/
DBlockLZ4CompressorOutputStreamTest.java96 Assert.assertArrayEquals(new byte[] { 0, 1, 0 }, bos.toByteArray()); in canWritePairWithoutLiterals()
105 Assert.assertArrayEquals(new byte[] { 15, 1, 0, 0 }, bos.toByteArray()); in writesCorrectSizeFor19ByteLengthBackReference()
114 Assert.assertArrayEquals(new byte[] { 15, 1, 0, (byte) 254 }, bos.toByteArray()); in writesCorrectSizeFor273ByteLengthBackReference()
123 Assert.assertArrayEquals(new byte[] { 15, 1, 0, (byte) 255, 0 }, bos.toByteArray()); in writesCorrectSizeFor274ByteLengthBackReference()
133 Assert.assertArrayEquals(new byte[] { 4<<4, 2, 3, 4, 5 }, bos.toByteArray()); in canWritePairWithoutBackReference()
144 …Assert.assertArrayEquals(new byte[] { (byte) (15<<4), 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4, 5,… in writesCorrectSizeFor15ByteLengthLiteral()
158 Assert.assertArrayEquals(new byte[] { (byte) (15<<4), (byte) 254, 1 }, in writesCorrectSizeFor269ByteLengthLiteral()
171 Assert.assertArrayEquals(new byte[] { (byte) (15<<4), (byte) 255, 0, 1 }, in writesCorrectSizeFor270ByteLengthLiteral()
184 Assert.assertArrayEquals(new byte[] { (4<<4) + 1, 2, 3, 4, 5, 1, 0 }, in writesCompletePair()
199 Assert.assertArrayEquals("input length is " + i, expected, compressed); in rewritingOfFinalBlockWithoutTrailingLZ77Literals()
[all …]
DFramedLZ4CompressorInputStreamTest.java59 assertArrayEquals(expected, actual); in readBlaLz4()
71 assertArrayEquals(expected, actual); in readBlaLz4ViaFactory()
82 assertArrayEquals(expected, actual); in readBlaLz4ViaFactoryAutoDetection()
92 assertArrayEquals(expected, actual); in readBlaLz4WithDecompressConcatenated()
135 assertArrayEquals(expected, actual); in readBlaLz4ViaFactoryWithDecompressConcatenated()
178 assertArrayEquals(expected, actual); in readBlaDumpLz4()
295 assertArrayEquals(new byte[] { in readsUncompressedBlocks()
404 assertArrayEquals(new byte[] { in skipsOverSkippableFrames()
426 assertArrayEquals(new byte[] { in skipsOverTrailingSkippableFrames()
636 assertArrayEquals(expectDuplicateOutput ? duplicate(expected) : expected, actual); in readDoubledBlaLz4()
/external/tensorflow/tensorflow/java/src/test/java/org/tensorflow/
DTensorTest.java19 import static org.junit.Assert.assertArrayEquals;
70 assertArrayEquals(strings, t.bytesValue()); in createWithByteBuffer()
80 assertArrayEquals(doubles, t.copyTo(actual), EPSILON); in createWithByteBuffer()
107 assertArrayEquals(doubles, t.copyTo(actual), EPSILON); in createFromBufferWithNonNativeByteOrder()
123 assertArrayEquals(doubles, t.copyTo(actual), EPSILON); in createWithTypedBuffer()
127 assertArrayEquals(floats, t.copyTo(actual), EPSILON_F); in createWithTypedBuffer()
131 assertArrayEquals(ints, t.copyTo(actual)); in createWithTypedBuffer()
135 assertArrayEquals(longs, t.copyTo(actual)); in createWithTypedBuffer()
261 assertArrayEquals(doubles, actual, EPSILON); in writeTo()
340 assertArrayEquals(bytes, t.bytesValue()); in scalars()
[all …]
DSessionTest.java18 import static org.junit.Assert.assertArrayEquals;
41 assertArrayEquals(expected, outputs.get(0).copyTo(new int[1][1])); in runUsingOperationNames()
58 assertArrayEquals(expected, outputs.get(0).copyTo(new int[1][1])); in runUsingOperationHandles()
82 assertArrayEquals(expected, fetched.copyTo(new int[2])); in runUsingColonSeparatedNames()
95 assertArrayEquals(expected, fetched.copyTo(new int[4])); in runUsingColonSeparatedNames()
116 assertArrayEquals(expected, outputs.get(0).copyTo(new int[1][1])); in runWithMetadata()
/external/conscrypt/openjdk/src/test/java/org/conscrypt/
DTestSessionBuilderTest.java19 import static org.junit.Assert.assertArrayEquals;
26 assertArrayEquals(new byte[] {0x00, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, 0x01, 0x22, 0x00, in buildsValidBasicSession()
37 assertArrayEquals( in buildsValidOcspSession()
53 assertArrayEquals( in buildsValidOcspAndTlsSctSession()
70 assertArrayEquals( in buildsValidButEmptyOcspAndTlsSctSession()
87 assertArrayEquals( in buildsInvalidOcspAndTlsSctSession()
/external/conscrypt/repackaged/openjdk/src/test/java/com/android/org/conscrypt/
DTestSessionBuilderTest.java20 import static org.junit.Assert.assertArrayEquals;
30 assertArrayEquals(new byte[] {0x00, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, 0x01, 0x22, 0x00, in buildsValidBasicSession()
41 assertArrayEquals( in buildsValidOcspSession()
57 assertArrayEquals( in buildsValidOcspAndTlsSctSession()
74 assertArrayEquals( in buildsValidButEmptyOcspAndTlsSctSession()
91 assertArrayEquals( in buildsInvalidOcspAndTlsSctSession()
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/utils/
DByteUtilsTest.java33 import static org.junit.Assert.assertArrayEquals;
148 assertArrayEquals(new byte[] { 2, 3, 4 }, bos.toByteArray()); in toLittleEndianToStream()
156 assertArrayEquals(new byte[] { 2, 3, 4, (byte) 128 }, bos.toByteArray()); in toLittleEndianToStreamUnsignedInt32()
164 assertArrayEquals(new byte[] { 2, 3, 4 }, bos.toByteArray()); in toLittleEndianToConsumer()
172 assertArrayEquals(new byte[] { 2, 3, 4, (byte) 128 }, bos.toByteArray()); in toLittleEndianToConsumerUnsignedInt32()
181 assertArrayEquals(new byte[] { 2, 3, 4 }, bos.toByteArray()); in toLittleEndianToDataOutput()
190 assertArrayEquals(new byte[] { 2, 3, 4, (byte) 128 }, bos.toByteArray()); in toLittleEndianToDataOutputUnsignedInt32()
198 assertArrayEquals(new byte[] { 2, 3, 4 }, Arrays.copyOfRange(b, 1, 4)); in toLittleEndianToByteArray()
205 assertArrayEquals(new byte[] { 2, 3, 4, (byte) 128 }, b); in toLittleEndianToByteArrayUnsignedInt32()
DCountingStreamTest.java21 import static org.junit.Assert.assertArrayEquals;
48 assertArrayEquals(new byte[] { 1, 2, 3, 4 }, bos.toByteArray()); in output()
63 assertArrayEquals(new byte[] { 2, 3 }, b); in input()
66 assertArrayEquals(new byte[] { 0, 4, 0 }, b); in input()
/external/apache-harmony/support/src/test/java/org/apache/harmony/testframework/
DSinkTester.java84 private static void assertArrayEquals(byte[] expected, byte[] actual) { in assertArrayEquals() method in SinkTester
99 assertArrayEquals(expected, getBytes()); in sinkTestNoWriting()
112 assertArrayEquals(expected, getBytes()); in sinkTestWriteZeroBytes()
124 assertArrayEquals(expected, getBytes()); in sinkTestWriteByteByByte()
146 assertArrayEquals(expected, getBytes()); in sinkTestWriteArray()
177 assertArrayEquals(expected, getBytes()); in sinkTestWriteOffset()
188 assertArrayEquals(expected, getBytes()); in sinkTestWriteLargeArray()
204 assertArrayEquals(expectedBytes, getBytes()); in sinkTestWriteAfterClose()
DCharSinkTester.java83 private static void assertArrayEquals(char[] expected, char[] actual) { in assertArrayEquals() method in CharSinkTester
98 assertArrayEquals(expected, getChars()); in sinkTestNoWriting()
111 assertArrayEquals(expected, getChars()); in sinkTestWriteZeroChars()
123 assertArrayEquals(expected, getChars()); in sinkTestWriteCharByChar()
136 assertArrayEquals(expected, getChars()); in sinkTestWriteArray()
162 assertArrayEquals(expected, getChars()); in sinkTestWriteOffset()
176 assertArrayEquals(expected, getChars()); in sinkTestWriteLargeArray()
192 assertArrayEquals(expectedChars, getChars()); in sinkTestWriteAfterClose()
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DReadableBufferTestBase.java20 import static org.junit.Assert.assertArrayEquals;
53 assertArrayEquals(msg.getBytes(UTF_8), array); in readToArrayShouldSucceed()
62 assertArrayEquals(new byte[] {'h', 'e'}, Arrays.copyOfRange(array, 1, 3)); in partialReadToArrayShouldSucceed()
71 assertArrayEquals(msg.getBytes(UTF_8), stream.toByteArray()); in readToStreamShouldSucceed()
80 assertArrayEquals(new byte[]{'h', 'e'}, Arrays.copyOfRange(stream.toByteArray(), 0, 2)); in partialReadToStreamShouldSucceed()
92 assertArrayEquals(msg.getBytes(UTF_8), array); in readToByteBufferShouldSucceed()
104 assertArrayEquals(new byte[]{'h', 'e'}, array); in partialReadToByteBufferShouldSucceed()
116 assertArrayEquals(new byte[] {'h', 'e'}, Arrays.copyOfRange(array, 0, 2)); in partialReadToReadableBufferShouldSucceed()
DReadableBuffersTest.java20 import static org.junit.Assert.assertArrayEquals;
43 assertArrayEquals(new byte[0], buffer.array()); in empty_returnsEmptyBuffer()
54 assertArrayEquals(new byte[]{'h', 'e', 'l', 'l', 'o'}, ReadableBuffers.readArray(buffer)); in readArray_returnsBufferArray()
111 assertArrayEquals(new byte[]{'h', 'e', 'l', 'l', 'o'}, dest); in bufferInputStream_read_writes()
121 assertArrayEquals(new byte[]{0x00, 'h', 'e'}, dest); in bufferInputStream_read_writesPartially()
/external/archive-patcher/shared/src/test/java/com/google/archivepatcher/shared/
DDeflateCompressorTest.java91 Assert.assertArrayEquals(CONTENT, uncompressed); in testCompress()
112 Assert.assertArrayEquals(CONTENT, uncompressedWithNowrapOn);
124 Assert.assertArrayEquals(CONTENT, uncompressedWithNowrapOff);
144 Assert.assertArrayEquals(CONTENT, content[strategy].uncompressed);
173 Assert.assertArrayEquals(CONTENT, content[level].uncompressed);
196 Assert.assertArrayEquals(CONTENT, uncompressed);
207 Assert.assertArrayEquals(CONTENT, uncompressed);
243 Assert.assertArrayEquals(CONTENT, uncompressed);
251 Assert.assertArrayEquals(CONTENT, uncompressed);
261 Assert.assertArrayEquals(CONTENT, uncompressed);
[all …]
/external/jacoco/org.jacoco.report.test/src/org/jacoco/report/
DZipMultiReportOutputTest.java14 import static org.junit.Assert.assertArrayEquals;
60 assertArrayEquals(content1, entries.get("a.txt")); in testWrite1()
75 assertArrayEquals("Zip".getBytes("ISO-8859-1"), entries.get("b.txt")); in testWrite2()
90 assertArrayEquals(new byte[] { 40 }, entries.get("b.txt")); in testWrite3()
113 assertArrayEquals(content1, entries.get("dir/index.html")); in testCreateFiles()
114 assertArrayEquals(content2, entries.get("readme.txt")); in testCreateFiles()
135 assertArrayEquals(content1, entries.get("dir/index.html")); in testCreateFilesWithoutClose()
136 assertArrayEquals(content2, entries.get("readme.txt")); in testCreateFilesWithoutClose()
/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/
DListToArrayTester.java39 assertArrayEquals("toArray() order should match list", in testToArray_noArg()
46 assertArrayEquals("toArray(tooSmall) order should match list", in testToArray_tooSmall()
52 assertArrayEquals("toArray(largeEnough) order should match list", in testToArray_largeEnough()
56 private static void assertArrayEquals(String message, Object[] expected, in assertArrayEquals() method in ListToArrayTester
/external/guava/guava-tests/test/com/google/common/io/
DByteSinkTest.java23 import static org.junit.Assert.assertArrayEquals;
55 assertArrayEquals(new byte[] {1, 2, 3, 4}, sink.getBytes()); in testOpenBufferedStream()
59 assertArrayEquals(new byte[0], sink.getBytes()); in testWrite_bytes()
63 assertArrayEquals(bytes, sink.getBytes()); in testWrite_bytes()
71 assertArrayEquals(bytes, sink.getBytes()); in testWriteFrom_inputStream()
DByteSourceTest.java26 import static org.junit.Assert.assertArrayEquals;
81 assertArrayEquals(bytes, out.toByteArray()); in testOpenBufferedStream()
101 assertArrayEquals(bytes, out.toByteArray()); in testCopyTo_outputStream()
113 assertArrayEquals(bytes, sink.getBytes()); in testCopyTo_byteSink()
117 assertArrayEquals(bytes, source.read()); in testRead_toArray()
142 assertArrayEquals(bytes, processedBytes); in testRead_withProcessor()
235 assertArrayEquals(expected, slice.read()); in assertCorrectSlice()
288 assertArrayEquals(expected, in testConcat()
290 assertArrayEquals(expected, in testConcat()
292 assertArrayEquals(expected, in testConcat()
[all …]
/external/archive-patcher/applier/src/test/java/com/google/archivepatcher/applier/
DPartiallyCompressingOutputStreamTest.java90 Assert.assertArrayEquals(input, outBuffer.toByteArray()); in testWrite_Nothing()
103 Assert.assertArrayEquals(expected, outBuffer.toByteArray()); in testWrite_NoneCompressed()
116 Assert.assertArrayEquals(ENTRY1.getCompressedBinaryContent(), outBuffer.toByteArray()); in testWrite_AllCompressed()
129 Assert.assertArrayEquals(expected, outBuffer.toByteArray()); in testWrite_GapAndCompression()
142 Assert.assertArrayEquals(expected, outBuffer.toByteArray()); in testWrite_GapAndCompressionAndGap()
169 Assert.assertArrayEquals(expected, outBuffer.toByteArray()); in testWrite_MixedSequence_Thrash()
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/cpio/
DCpioUtilTest.java23 import static org.junit.Assert.assertArrayEquals;
30 assertArrayEquals(new byte[] { (byte) 0xc7, 0x71 }, in oldBinMagic2ByteArrayNotSwapped()
37 assertArrayEquals(new byte[] { 0x71, (byte) 0xc7, }, in oldBinMagic2ByteArraySwapped()

123456