@Test public void testBasic() { Context context = new ContextBase(); context.getStatusManager().add(new InfoStatus("test", this)); StatusPrinter.print(context); String result = outputStream.toString(); assertTrue(result.contains("|-INFO in "+this.getClass().getName())); }
public static void print(Context context) { print(context, 0); }
StatusPrinter { public static void print(Context context) { print(context, 0); } }
StatusPrinter { public static void print(Context context) { print(context, 0); }  }
StatusPrinter { public static void print(Context context) { print(context, 0); }  static void setPrintStream(PrintStream printStream); static void printInCaseOfErrorsOrWarnings(Context context); static void printInCaseOfErrorsOrWarnings(Context context, long threshold); static void printIfErrorsOccured(Context context); static void print(Context context); static void print(Context context, long threshold); static void print(StatusManager sm); static void print(StatusManager sm, long threshold); static void print(List<Status> statusList); static void buildStr(StringBuilder sb, String indentation, Status s); }
StatusPrinter { public static void print(Context context) { print(context, 0); }  static void setPrintStream(PrintStream printStream); static void printInCaseOfErrorsOrWarnings(Context context); static void printInCaseOfErrorsOrWarnings(Context context, long threshold); static void printIfErrorsOccured(Context context); static void print(Context context); static void print(Context context, long threshold); static void print(StatusManager sm); static void print(StatusManager sm, long threshold); static void print(List<Status> statusList); static void buildStr(StringBuilder sb, String indentation, Status s);  }