@Test void upgradeException() { DataAccessException dataAccessException = mock(DataAccessException.class); doThrow(dataAccessException).when(jdbcTemplate).execute(any(String.class)); assertThrows(DataAccessException.class, () -> step42.upgrade()); }
@Override public void upgrade() { LOG.debug("Remove form_not_a_valid_url row"); removeFromsUrlMsg(); LOG.info("row (id = 'form_not_a_valid_url') has been removed from sys_L10nString"); }
Step42RemoveFormsUrlRow extends MolgenisUpgrade { @Override public void upgrade() { LOG.debug("Remove form_not_a_valid_url row"); removeFromsUrlMsg(); LOG.info("row (id = 'form_not_a_valid_url') has been removed from sys_L10nString"); } }
Step42RemoveFormsUrlRow extends MolgenisUpgrade { @Override public void upgrade() { LOG.debug("Remove form_not_a_valid_url row"); removeFromsUrlMsg(); LOG.info("row (id = 'form_not_a_valid_url') has been removed from sys_L10nString"); } Step42RemoveFormsUrlRow(DataSource dataSource);   Step42RemoveFormsUrlRow(JdbcTemplate jdbcTemplate); }
Step42RemoveFormsUrlRow extends MolgenisUpgrade { @Override public void upgrade() { LOG.debug("Remove form_not_a_valid_url row"); removeFromsUrlMsg(); LOG.info("row (id = 'form_not_a_valid_url') has been removed from sys_L10nString"); } Step42RemoveFormsUrlRow(DataSource dataSource);   Step42RemoveFormsUrlRow(JdbcTemplate jdbcTemplate); @Override void upgrade(); }
Step42RemoveFormsUrlRow extends MolgenisUpgrade { @Override public void upgrade() { LOG.debug("Remove form_not_a_valid_url row"); removeFromsUrlMsg(); LOG.info("row (id = 'form_not_a_valid_url') has been removed from sys_L10nString"); } Step42RemoveFormsUrlRow(DataSource dataSource);   Step42RemoveFormsUrlRow(JdbcTemplate jdbcTemplate); @Override void upgrade();  }