@Test public void testAddTestRefNoSakuliException() { @NonNull Exception e = new RuntimeException(""); final Exception result = testling.addTestRef(e, testsuite); assertEquals(result.getClass(), SakuliCheckedException.class); assertEquals(result.getCause(), e); assertEquals(((SakuliException) result).getAsyncTestDataRef().get(), testsuite); }
Exception addTestRef(@NonNull Exception e, @NonNull AbstractTestDataEntity testDataRef) { if (!(e instanceof SakuliException)) { e = new SakuliCheckedException(e); } ((SakuliException) e).setAsyncTestDataRef(testDataRef); return e; }
AbstractTeardownService implements TeardownService { Exception addTestRef(@NonNull Exception e, @NonNull AbstractTestDataEntity testDataRef) { if (!(e instanceof SakuliException)) { e = new SakuliCheckedException(e); } ((SakuliException) e).setAsyncTestDataRef(testDataRef); return e; } }
AbstractTeardownService implements TeardownService { Exception addTestRef(@NonNull Exception e, @NonNull AbstractTestDataEntity testDataRef) { if (!(e instanceof SakuliException)) { e = new SakuliCheckedException(e); } ((SakuliException) e).setAsyncTestDataRef(testDataRef); return e; }  }
AbstractTeardownService implements TeardownService { Exception addTestRef(@NonNull Exception e, @NonNull AbstractTestDataEntity testDataRef) { if (!(e instanceof SakuliException)) { e = new SakuliCheckedException(e); } ((SakuliException) e).setAsyncTestDataRef(testDataRef); return e; }  @Override void handleTeardownException(@NonNull Exception e, boolean async, @NonNull AbstractTestDataEntity testDataRef); @Override void teardownTestCase(@NonNull TestCase testCase); @Override void teardownTestCaseStep(@NonNull TestCaseStep testCaseStep); }
AbstractTeardownService implements TeardownService { Exception addTestRef(@NonNull Exception e, @NonNull AbstractTestDataEntity testDataRef) { if (!(e instanceof SakuliException)) { e = new SakuliCheckedException(e); } ((SakuliException) e).setAsyncTestDataRef(testDataRef); return e; }  @Override void handleTeardownException(@NonNull Exception e, boolean async, @NonNull AbstractTestDataEntity testDataRef); @Override void teardownTestCase(@NonNull TestCase testCase); @Override void teardownTestCaseStep(@NonNull TestCaseStep testCaseStep);  }