@Test public void shine() { exit.expectSystemExitWithStatus(0); new Sun(new Kernel.Fake(new Fake())).shine(); }
@Override public final void shine() { try { final Status status = this.core.status(); System.out.println( new StringBuilder("\n===============================================\n") .append("Total tests run: ") .append(status.runCount()) .append(", Failures: ") .append(status.failureCount()) .append(", Skips: ") .append(status.ignoreCount()) .append("\n===============================================\n")); System.exit(status.code()); } catch (KernelException e) { e.printStackTrace(System.out); System.exit(Sun.SUNSHINE_ERROR); } }
Sun implements Star { @Override public final void shine() { try { final Status status = this.core.status(); System.out.println( new StringBuilder("\n===============================================\n") .append("Total tests run: ") .append(status.runCount()) .append(", Failures: ") .append(status.failureCount()) .append(", Skips: ") .append(status.ignoreCount()) .append("\n===============================================\n")); System.exit(status.code()); } catch (KernelException e) { e.printStackTrace(System.out); System.exit(Sun.SUNSHINE_ERROR); } } }
Sun implements Star { @Override public final void shine() { try { final Status status = this.core.status(); System.out.println( new StringBuilder("\n===============================================\n") .append("Total tests run: ") .append(status.runCount()) .append(", Failures: ") .append(status.failureCount()) .append(", Skips: ") .append(status.ignoreCount()) .append("\n===============================================\n")); System.exit(status.code()); } catch (KernelException e) { e.printStackTrace(System.out); System.exit(Sun.SUNSHINE_ERROR); } } Sun(Kernel<?> kernel); }
Sun implements Star { @Override public final void shine() { try { final Status status = this.core.status(); System.out.println( new StringBuilder("\n===============================================\n") .append("Total tests run: ") .append(status.runCount()) .append(", Failures: ") .append(status.failureCount()) .append(", Skips: ") .append(status.ignoreCount()) .append("\n===============================================\n")); System.exit(status.code()); } catch (KernelException e) { e.printStackTrace(System.out); System.exit(Sun.SUNSHINE_ERROR); } } Sun(Kernel<?> kernel); @Override final void shine(); }
Sun implements Star { @Override public final void shine() { try { final Status status = this.core.status(); System.out.println( new StringBuilder("\n===============================================\n") .append("Total tests run: ") .append(status.runCount()) .append(", Failures: ") .append(status.failureCount()) .append(", Skips: ") .append(status.ignoreCount()) .append("\n===============================================\n")); System.exit(status.code()); } catch (KernelException e) { e.printStackTrace(System.out); System.exit(Sun.SUNSHINE_ERROR); } } Sun(Kernel<?> kernel); @Override final void shine();  }