1
2
3
4
5
6
7
8
9
10
11 package psiprobe.tools;
12
13 import java.io.IOException;
14 import java.io.PrintStream;
15
16 import org.junit.jupiter.api.Test;
17 import org.junit.jupiter.api.extension.ExtendWith;
18 import org.mockito.Mock;
19 import org.mockito.junit.jupiter.MockitoExtension;
20 import org.slf4j.Logger;
21
22
23
24
25 @ExtendWith(MockitoExtension.class)
26 class LogOutputStreamTest {
27
28
29 PrintStream stream;
30
31
32 @Mock
33 Logger log;
34
35
36
37
38
39
40 @Test
41 void loggerTest() throws IOException {
42 stream = LogOutputStream.createPrintStream(log, 5);
43 stream.write('\u0001');
44 }
45
46 }