* @see net.sf.hajdbc.dialect.StandardDialectTest#getAlterSequenceSQL()
*/
@Override
public void getAlterSequenceSQL() throws SQLException
{
SequenceProperties sequence = mock(SequenceProperties.class);
QualifiedName name = mock(QualifiedName.class);
when(sequence.getName()).thenReturn(name);
when(name.getDDLName()).thenReturn("sequence");
when(sequence.getIncrement()).thenReturn(1);
String result = this.dialect.getSequenceSupport().getAlterSequenceSQL(sequence, 1000L);
assertEquals("ALTER SEQUENCE sequence INCREMENT BY (1000 - (SELECT sequence.NEXTVAL FROM DUAL)); SELECT sequence.NEXTVAL FROM DUAL; ALTER SEQUENCE sequence INCREMENT BY 1", result);
}