We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e86d33 commit 09ee984Copy full SHA for 09ee984
utilcode/src/test/java/com/blankj/utilcode/util/ConvertUtilsTest.java
@@ -121,9 +121,11 @@ public void bytes2Bits_bits2Bytes() throws Exception {
121
@Test
122
public void inputStream2Bytes_bytes2InputStream() throws Exception {
123
String string = "this is test string";
124
- Assert.assertEquals(
125
- string.getBytes("UTF-8"),
126
- ConvertUtils.inputStream2Bytes(ConvertUtils.bytes2InputStream(string.getBytes("UTF-8")))
+ Assert.assertTrue(
+ Arrays.equals(
+ string.getBytes("UTF-8"),
127
+ ConvertUtils.inputStream2Bytes(ConvertUtils.bytes2InputStream(string.getBytes("UTF-8")))
128
+ )
129
);
130
}
131
0 commit comments