@Test public void run() throws KernelException { MatcherAssert.assertThat( new Junit4Kernel(() -> new Class[] {}).status().code(), Matchers.equalTo((short) 0)); }
@Override public final Status status() throws KernelException { try { return new JunitStatus(this.junit.run(new Computer(), this.suiteForRun.tests())); } catch (SuiteException e) { throw new KernelException("Some problem occurs in the JUnit 4 kernel", e); } }
Junit4Kernel implements Kernel<RunListener> { @Override public final Status status() throws KernelException { try { return new JunitStatus(this.junit.run(new Computer(), this.suiteForRun.tests())); } catch (SuiteException e) { throw new KernelException("Some problem occurs in the JUnit 4 kernel", e); } } }
Junit4Kernel implements Kernel<RunListener> { @Override public final Status status() throws KernelException { try { return new JunitStatus(this.junit.run(new Computer(), this.suiteForRun.tests())); } catch (SuiteException e) { throw new KernelException("Some problem occurs in the JUnit 4 kernel", e); } } Junit4Kernel(Suite<Class<?>[]> suite); private  Junit4Kernel(JUnitCore jUnitCore, Suite<Class<?>[]> suite); }
Junit4Kernel implements Kernel<RunListener> { @Override public final Status status() throws KernelException { try { return new JunitStatus(this.junit.run(new Computer(), this.suiteForRun.tests())); } catch (SuiteException e) { throw new KernelException("Some problem occurs in the JUnit 4 kernel", e); } } Junit4Kernel(Suite<Class<?>[]> suite); private  Junit4Kernel(JUnitCore jUnitCore, Suite<Class<?>[]> suite); @Override final Status status(); @Override final Junit4Kernel with(RunListener... listeners); }
Junit4Kernel implements Kernel<RunListener> { @Override public final Status status() throws KernelException { try { return new JunitStatus(this.junit.run(new Computer(), this.suiteForRun.tests())); } catch (SuiteException e) { throw new KernelException("Some problem occurs in the JUnit 4 kernel", e); } } Junit4Kernel(Suite<Class<?>[]> suite); private  Junit4Kernel(JUnitCore jUnitCore, Suite<Class<?>[]> suite); @Override final Status status(); @Override final Junit4Kernel with(RunListener... listeners);  }