mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
add test
This commit is contained in:
17
hutool-core/src/test/java/cn/hutool/core/io/FastStringWriterTest.java
Executable file
17
hutool-core/src/test/java/cn/hutool/core/io/FastStringWriterTest.java
Executable file
@@ -0,0 +1,17 @@
|
||||
package cn.hutool.core.io;
|
||||
|
||||
import cn.hutool.core.text.StrUtil;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
public class FastStringWriterTest {
|
||||
|
||||
@SuppressWarnings("resource")
|
||||
@Test
|
||||
public void writeTest() {
|
||||
final FastStringWriter fastStringWriter = new FastStringWriter(IoUtil.DEFAULT_BUFFER_SIZE);
|
||||
fastStringWriter.write(StrUtil.repeat("hutool", 2));
|
||||
|
||||
Assert.assertEquals("hutoolhutool", fastStringWriter.toString());
|
||||
}
|
||||
}
|
@@ -1,5 +1,6 @@
|
||||
package cn.hutool.core.io;
|
||||
|
||||
import cn.hutool.core.util.ManifestUtil;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
|
Reference in New Issue
Block a user