@Test void testExecuteMigrationInternalWhenLastSequenceValueIsZero() throws SQLException { Mockito.when(mockSourceDatabaseQueryClient.getLastSequenceValue(TEST_SEQUENCE_NAME)) .thenReturn(0L); Assertions.assertThrows(IllegalStateException.class, () -> databaseSequenceMigrationExecutor.executeMigration(TEST_SEQUENCE_NAME)); }
private long getLastSequenceValue(String sequenceName) throws SQLException { return getSourceDatabaseQueryClient().getLastSequenceValue(sequenceName); }
DatabaseSequenceMigrationExecutor extends DatabaseMigrationExecutor { private long getLastSequenceValue(String sequenceName) throws SQLException { return getSourceDatabaseQueryClient().getLastSequenceValue(sequenceName); } }
DatabaseSequenceMigrationExecutor extends DatabaseMigrationExecutor { private long getLastSequenceValue(String sequenceName) throws SQLException { return getSourceDatabaseQueryClient().getLastSequenceValue(sequenceName); }  }
DatabaseSequenceMigrationExecutor extends DatabaseMigrationExecutor { private long getLastSequenceValue(String sequenceName) throws SQLException { return getSourceDatabaseQueryClient().getLastSequenceValue(sequenceName); }  @Override void executeMigrationInternal(String sequenceName); }
DatabaseSequenceMigrationExecutor extends DatabaseMigrationExecutor { private long getLastSequenceValue(String sequenceName) throws SQLException { return getSourceDatabaseQueryClient().getLastSequenceValue(sequenceName); }  @Override void executeMigrationInternal(String sequenceName);  }