@Test public void testInitTestSuiteInDatabase() throws Exception { int dbKey = 11; when(daoTestSuite.insertInitialTestSuiteData()).thenReturn(dbKey); testling.initTestSuite(); verify(testSuite).setDbPrimaryKey(eq(dbKey)); }
@Override public void initTestSuite() { try { testSuite.setDbPrimaryKey(daoTestSuite.insertInitialTestSuiteData()); } catch (Exception e) { exceptionHandler.handleException(new SakuliForwarderCheckedException(e, "error at database initialization!"), true); } }
DatabaseInitializingServiceImpl implements InitializingService { @Override public void initTestSuite() { try { testSuite.setDbPrimaryKey(daoTestSuite.insertInitialTestSuiteData()); } catch (Exception e) { exceptionHandler.handleException(new SakuliForwarderCheckedException(e, "error at database initialization!"), true); } } }
DatabaseInitializingServiceImpl implements InitializingService { @Override public void initTestSuite() { try { testSuite.setDbPrimaryKey(daoTestSuite.insertInitialTestSuiteData()); } catch (Exception e) { exceptionHandler.handleException(new SakuliForwarderCheckedException(e, "error at database initialization!"), true); } }  }
DatabaseInitializingServiceImpl implements InitializingService { @Override public void initTestSuite() { try { testSuite.setDbPrimaryKey(daoTestSuite.insertInitialTestSuiteData()); } catch (Exception e) { exceptionHandler.handleException(new SakuliForwarderCheckedException(e, "error at database initialization!"), true); } }  @Override int getServicePriority(); @Override void initTestSuite(); }
DatabaseInitializingServiceImpl implements InitializingService { @Override public void initTestSuite() { try { testSuite.setDbPrimaryKey(daoTestSuite.insertInitialTestSuiteData()); } catch (Exception e) { exceptionHandler.handleException(new SakuliForwarderCheckedException(e, "error at database initialization!"), true); } }  @Override int getServicePriority(); @Override void initTestSuite();  }