Skip to content

Commit 13c6f35

Browse files
committed
add test
1 parent 486500d commit 13c6f35

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package cn.hutool.core.io;
2+
3+
import cn.hutool.core.date.DateUtil;
4+
import cn.hutool.core.date.StopWatch;
5+
import cn.hutool.core.io.resource.ResourceUtil;
6+
import cn.hutool.core.lang.Console;
7+
import org.junit.jupiter.api.Disabled;
8+
import org.junit.jupiter.api.Test;
9+
10+
import java.util.concurrent.TimeUnit;
11+
12+
public class Issue3846Test {
13+
@Test
14+
@Disabled
15+
void readBytesTest() {
16+
final StopWatch stopWatch = DateUtil.createStopWatch();
17+
stopWatch.start();
18+
final String filePath = "d:/test/issue3846.data";
19+
final byte[] bytes = IoUtil.readBytes(ResourceUtil.getStream(filePath), false);
20+
stopWatch.stop();
21+
Console.log(stopWatch.prettyPrint(TimeUnit.MILLISECONDS));
22+
}
23+
}

0 commit comments

Comments
 (0)