summaryrefslogtreecommitdiff
path: root/base/src/test/java/bjc/utils/ioutils/ReportWriterTest.java
blob: a9f70723551dbb0383c7826f39843e4e8d1c51e9 (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
package bjc.utils.ioutils;

import static org.junit.Assert.assertEquals;

import java.io.IOException;
import java.io.StringWriter;

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) {

		}
	}
}