@Test public void with() throws KernelException { final Listener l1 = new Listener(); final Listener l2 = new Listener(); new Junit5Kernel(ArrayList::new).with(l1).with(l2).status(); MatcherAssert.assertThat(l1, Matchers.not(Matchers.equalTo(l2))); }
@Override public final Kernel<TestExecutionListener> with( TestExecutionListener... testExecutionListeners) { final Launcher fork = LauncherFactory.create(); fork.registerTestExecutionListeners(testExecutionListeners); return new Junit5Kernel(fork, this.tests); }
Junit5Kernel implements Kernel<TestExecutionListener> { @Override public final Kernel<TestExecutionListener> with( TestExecutionListener... testExecutionListeners) { final Launcher fork = LauncherFactory.create(); fork.registerTestExecutionListeners(testExecutionListeners); return new Junit5Kernel(fork, this.tests); } }
Junit5Kernel implements Kernel<TestExecutionListener> { @Override public final Kernel<TestExecutionListener> with( TestExecutionListener... testExecutionListeners) { final Launcher fork = LauncherFactory.create(); fork.registerTestExecutionListeners(testExecutionListeners); return new Junit5Kernel(fork, this.tests); } Junit5Kernel(SunshineSuite sunshineSuite); private  Junit5Kernel(Launcher launcher, SunshineSuite sunshineSuite); }
Junit5Kernel implements Kernel<TestExecutionListener> { @Override public final Kernel<TestExecutionListener> with( TestExecutionListener... testExecutionListeners) { final Launcher fork = LauncherFactory.create(); fork.registerTestExecutionListeners(testExecutionListeners); return new Junit5Kernel(fork, this.tests); } Junit5Kernel(SunshineSuite sunshineSuite); private  Junit5Kernel(Launcher launcher, SunshineSuite sunshineSuite); @Override final Status status(); @Override final Kernel<TestExecutionListener> with(
            TestExecutionListener... testExecutionListeners); }
Junit5Kernel implements Kernel<TestExecutionListener> { @Override public final Kernel<TestExecutionListener> with( TestExecutionListener... testExecutionListeners) { final Launcher fork = LauncherFactory.create(); fork.registerTestExecutionListeners(testExecutionListeners); return new Junit5Kernel(fork, this.tests); } Junit5Kernel(SunshineSuite sunshineSuite); private  Junit5Kernel(Launcher launcher, SunshineSuite sunshineSuite); @Override final Status status(); @Override final Kernel<TestExecutionListener> with(
            TestExecutionListener... testExecutionListeners);  }