mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
add test
This commit is contained in:
parent
3798347369
commit
8bd9938ff3
@ -0,0 +1,23 @@
|
||||
package org.dromara.hutool.core.io;
|
||||
|
||||
import org.dromara.hutool.core.date.DateUtil;
|
||||
import org.dromara.hutool.core.date.StopWatch;
|
||||
import org.dromara.hutool.core.io.resource.ResourceUtil;
|
||||
import org.dromara.hutool.core.lang.Console;
|
||||
import org.junit.jupiter.api.Disabled;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
public class Issue3846Test {
|
||||
@Test
|
||||
@Disabled
|
||||
void readBytesTest() {
|
||||
final StopWatch stopWatch = DateUtil.createStopWatch();
|
||||
stopWatch.start();
|
||||
final String filePath = "d:/test/issue3846.data";
|
||||
final byte[] bytes = IoUtil.readBytes(ResourceUtil.getStream(filePath), false);
|
||||
stopWatch.stop();
|
||||
Console.log(stopWatch.prettyPrint(TimeUnit.MILLISECONDS));
|
||||
}
|
||||
}
|
1
hutool-core/src/test/resources/issue3846.txt
Normal file
1
hutool-core/src/test/resources/issue3846.txt
Normal file
@ -0,0 +1 @@
|
||||
f1f5eafa000a0000828974000800680000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
Loading…
x
Reference in New Issue
Block a user