use of liquibase.serializer.core.string.StringChangeLogSerializer in project liquibase by liquibase.
the class GenerateChangeLogTask method addConfiguredTxt.
public void addConfiguredTxt(ChangeLogOutputFile changeLogOutputFile) {
changeLogOutputFile.setChangeLogSerializer(new StringChangeLogSerializer());
changeLogOutputFiles.add(changeLogOutputFile);
}
use of liquibase.serializer.core.string.StringChangeLogSerializer in project liquibase by liquibase.
the class ChangeLogSerializerFactoryTest method unregister_instance.
@Test
public void unregister_instance() {
ChangeLogSerializerFactory factory = ChangeLogSerializerFactory.getInstance();
factory.getSerializers().clear();
assertEquals(0, factory.getSerializers().size());
XMLChangeLogSerializer changeLogSerializer = new XMLChangeLogSerializer();
factory.register(new StringChangeLogSerializer());
factory.register(changeLogSerializer);
assertEquals(2, factory.getSerializers().size());
factory.unregister(changeLogSerializer);
assertEquals(1, factory.getSerializers().size());
}
use of liquibase.serializer.core.string.StringChangeLogSerializer in project liquibase by liquibase.
the class VerifyChangeClassesTest method formatParameter.
private String formatParameter(Object paramValue) {
String serializedValue;
if (paramValue instanceof Collection) {
serializedValue = "[";
for (Object obj : (Collection) paramValue) {
serializedValue += formatParameter(obj) + ", ";
}
serializedValue += "]";
} else if (paramValue instanceof LiquibaseSerializable) {
serializedValue = new StringChangeLogSerializer().serialize(((LiquibaseSerializable) paramValue), true);
} else {
serializedValue = paramValue.toString();
}
return serializedValue;
}
use of liquibase.serializer.core.string.StringChangeLogSerializer in project liquibase by liquibase.
the class DiffDatabaseToChangeLogTask method addConfiguredTxt.
public void addConfiguredTxt(ChangeLogOutputFile changeLogOutputFile) {
changeLogOutputFile.setChangeLogSerializer(new StringChangeLogSerializer());
changeLogOutputFiles.add(changeLogOutputFile);
}
Aggregations