1 /* 2 * Licensed under the GPL License. You may not use this file except in compliance with the License. 3 * You may obtain a copy of the License at 4 * 5 * https://www.gnu.org/licenses/old-licenses/gpl-2.0.html 6 * 7 * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, 8 * WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR 9 * PURPOSE. 10 */ 11 package psiprobe.tools; 12 13 import java.io.IOException; 14 import java.io.PrintStream; 15 16 import mockit.Mocked; 17 18 import org.junit.jupiter.api.Test; 19 import org.slf4j.Logger; 20 21 /** 22 * The Class LogOutputStreamTest. 23 */ 24 class LogOutputStreamTest { 25 26 /** The stream. */ 27 PrintStream stream; 28 29 /** The log. */ 30 @Mocked 31 Logger log; 32 33 /** 34 * Logger test. 35 * 36 * @throws IOException Signals that an I/O exception has occurred. 37 */ 38 @Test 39 void loggerTest() throws IOException { 40 stream = LogOutputStream.createPrintStream(log, 5); 41 stream.write('\u0001'); 42 } 43 44 }