@Test public void serialized_AddForeignKeyConstraint() { AddForeignKeyConstraintChange change = new AddForeignKeyConstraintChange(); assertEquals("addForeignKeyConstraint:[]", new StringChangeLogSerializer().serialize(change)); change.setBaseTableName("TABLE_NAME"); change.setBaseColumnNames("COL1, COL2"); change.setBaseTableSchemaName("BASE_SCHEM"); change.setConstraintName("FK_TEST"); change.setDeferrable(true); change.setInitiallyDeferred(true); change.setReferencesUniqueColumn(false); change.setDeleteCascade(true); change.setOnDelete("SET NULL"); change.setOnUpdate("NO ACTION"); change.setReferencedTableName("REF_TABLE"); change.setReferencedColumnNames("COLA, COLB"); change.setReferencedTableSchemaName("REF_SCHEM"); assertEquals("addForeignKeyConstraint:[\n" + " baseColumnNames=\"COL1, COL2\"\n" + " baseTableName=\"TABLE_NAME\"\n" + " baseTableSchemaName=\"BASE_SCHEM\"\n" + " constraintName=\"FK_TEST\"\n" + " deferrable=\"true\"\n" + " initiallyDeferred=\"true\"\n" + " onDelete=\"SET NULL\"\n" + " onUpdate=\"NO ACTION\"\n" + " referencedColumnNames=\"COLA, COLB\"\n" + " referencedTableName=\"REF_TABLE\"\n" + " referencedTableSchemaName=\"REF_SCHEM\"\n" + " referencesUniqueColumn=\"false\"\n" + "]", new StringChangeLogSerializer().serialize(change)); }
public String serialize(DatabaseChangeLog databaseChangeLog) { return null; }
StringChangeLogSerializer implements ChangeLogSerializer { public String serialize(DatabaseChangeLog databaseChangeLog) { return null; } }
StringChangeLogSerializer implements ChangeLogSerializer { public String serialize(DatabaseChangeLog databaseChangeLog) { return null; }  }
StringChangeLogSerializer implements ChangeLogSerializer { public String serialize(DatabaseChangeLog databaseChangeLog) { return null; }  String[] getValidFileExtensions(); String serialize(DatabaseChangeLog databaseChangeLog); String serialize(Change change); String serialize(SqlVisitor visitor); String serialize(ColumnConfig columnConfig); String serialize(ChangeSet changeSet); void write(List<ChangeSet> changeSets, OutputStream out); }
StringChangeLogSerializer implements ChangeLogSerializer { public String serialize(DatabaseChangeLog databaseChangeLog) { return null; }  String[] getValidFileExtensions(); String serialize(DatabaseChangeLog databaseChangeLog); String serialize(Change change); String serialize(SqlVisitor visitor); String serialize(ColumnConfig columnConfig); String serialize(ChangeSet changeSet); void write(List<ChangeSet> changeSets, OutputStream out);  }