public class ChangeByAffectedObjectFilterTest {
@Test
public void testNotNullConstraintCreation() {
DBTable oldTable = new DBTable("T");
DBColumn oldColumn = new DBColumn("C1", oldTable, DBDataType.getInstance("INTEGER"));
DBColumn oldColumn2 = new DBColumn("C2", oldTable, DBDataType.getInstance("INTEGER"));
DBTable newTable = new DBTable("T");
DBColumn newColumn = new DBColumn("C1", newTable, DBDataType.getInstance("INTEGER"));
DBColumn newColumn2 = new DBColumn("C2", newTable, DBDataType.getInstance("INTEGER"));
DBNotNullConstraint constraint = new DBNotNullConstraint(newTable, "T_C1_NOT_NULL", true, "C1");
newColumn.setNotNullConstraint(constraint);
NotNullConstraintCreation constraintCreation = new NotNullConstraintCreation(constraint);
ColumnChange columnChange = new ColumnChange(newColumn);