This commit is contained in:
Looly
2020-12-16 14:42:20 +08:00
parent 990f1b5cc5
commit f47de0590d
29 changed files with 113 additions and 50 deletions

View File

@@ -0,0 +1,14 @@
package cn.hutool.core.io;
import cn.hutool.core.io.resource.ResourceUtil;
import org.junit.Assert;
import org.junit.Test;
public class IoUtilTest {
@Test
public void readBytesTest(){
final byte[] bytes = IoUtil.readBytes(ResourceUtil.getStream("hutool.jpg"));
Assert.assertEquals(22807, bytes.length);
}
}