// Path: jdcallgraph/src/test/java/com/dkarv/jdcallgraph/helper/Console.java
// public class Console {
//   private final PrintStream err;
//   private final PrintStream out;
//   private final ByteArrayOutputStream outContent;
//   private final ByteArrayOutputStream errContent;
// 
//   public Console() {
//     err = System.err;
//     out = System.out;
//     outContent = new ByteArrayOutputStream();
//     errContent = new ByteArrayOutputStream();
//   }
// 
//   public void startCapture() throws UnsupportedEncodingException {
//     System.setOut(new PrintStream(outContent, true, "UTF-8"));
//     System.setErr(new PrintStream(errContent, true, "UTF-8"));
//   }
// 
//   public void clear() {
//     outContent.reset();
//     errContent.reset();
//   }
// 
//   public void reset() {
//     System.setOut(out);
//     System.setErr(err);
//   }
// 
//   public String getOut() throws UnsupportedEncodingException {
//     return outContent.toString("UTF-8");
//   }
// 
//   public String getErr() throws UnsupportedEncodingException {
//     return errContent.toString("UTF-8");
//   }
// }


import com.dkarv.jdcallgraph.helper.Console;
import org.junit.Assert;
import org.junit.Test;
import org.mockito.Mockito;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
package com.dkarv.jdcallgraph.util.log;



public class ConsoleTargetTest {

  private final static String TEST = "test#+*'!§$%&/()=?\n@@€";

  @Test
  public void testPrint() throws UnsupportedEncodingException {
// Path: jdcallgraph/src/test/java/com/dkarv/jdcallgraph/helper/Console.java
// public class Console {
//   private final PrintStream err;
//   private final PrintStream out;
//   private final ByteArrayOutputStream outContent;
//   private final ByteArrayOutputStream errContent;
// 
//   public Console() {
//     err = System.err;
//     out = System.out;
//     outContent = new ByteArrayOutputStream();
//     errContent = new ByteArrayOutputStream();
//   }
// 
//   public void startCapture() throws UnsupportedEncodingException {
//     System.setOut(new PrintStream(outContent, true, "UTF-8"));
//     System.setErr(new PrintStream(errContent, true, "UTF-8"));
//   }
// 
//   public void clear() {
//     outContent.reset();
//     errContent.reset();
//   }
// 
//   public void reset() {
//     System.setOut(out);
//     System.setErr(err);
//   }
// 
//   public String getOut() throws UnsupportedEncodingException {
//     return outContent.toString("UTF-8");
//   }
// 
//   public String getErr() throws UnsupportedEncodingException {
//     return errContent.toString("UTF-8");
//   }
// }


// Path: jdcallgraph/src/test/java/com/dkarv/jdcallgraph/util/log/ConsoleTargetTest.java
import com.dkarv.jdcallgraph.helper.Console;
import org.junit.Assert;
import org.junit.Test;
import org.mockito.Mockito;
import java.io.IOException;
import java.io.UnsupportedEncodingException;

package com.dkarv.jdcallgraph.util.log;



public class ConsoleTargetTest {

  private final static String TEST = "test#+*'!§$%&/()=?\n@@€";

  @Test
  public void testPrint() throws UnsupportedEncodingException {
    Console console = new Console();