blob: 2092ae02679e90ccf6e642593496b4b3e91a02a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
package bjc.utils.ioutils;
import static org.junit.Assert.*;
import java.io.IOException;
import java.io.StringWriter;
import bjc.utils.ioutils.ReportWriter;
import org.junit.Test;
/**
* Tests for ReportWriter.
*
* @author EVE
*
*/
@SuppressWarnings("javadoc")
public class ReportWriterTest {
@Test
public void testWriteString() {
try (ReportWriter rw = new ReportWriter(new StringWriter())) {
rw.write("foo");
assertEquals("foo", rw.toString());
} catch (IOException ioex) {
}
}
}
|