Search in sources :

Example 16 with DbProperty

use of org.alfresco.util.schemacomp.DbProperty in project alfresco-repository by Alfresco.

the class ColumnTest method doDiffTests.

@Override
protected void doDiffTests() {
    DbProperty thisTypeProp = new DbProperty(thisColumn, "type");
    DbProperty thatTypeProp = new DbProperty(thatColumn, "type");
    inOrder.verify(comparisonUtils).compareSimple(thisTypeProp, thatTypeProp, ctx);
    DbProperty thisNullableProp = new DbProperty(thisColumn, "nullable");
    DbProperty thatNullableProp = new DbProperty(thatColumn, "nullable");
    inOrder.verify(comparisonUtils).compareSimple(thisNullableProp, thatNullableProp, ctx);
    DbProperty thisOrderProp = new DbProperty(thisColumn, "order");
    DbProperty thatOrderProp = new DbProperty(thatColumn, "order");
    inOrder.verify(comparisonUtils).compareSimple(thisOrderProp, thatOrderProp, ctx);
    DbProperty thisAutoIncProp = new DbProperty(thisColumn, "autoIncrement");
    DbProperty thatAutoIncProp = new DbProperty(thatColumn, "autoIncrement");
    inOrder.verify(comparisonUtils).compareSimple(thisAutoIncProp, thatAutoIncProp, ctx);
}
Also used : DbProperty(org.alfresco.util.schemacomp.DbProperty)

Example 17 with DbProperty

use of org.alfresco.util.schemacomp.DbProperty in project alfresco-repository by Alfresco.

the class ForeignKeyTest method doDiffTests.

@Override
protected void doDiffTests() {
    inOrder.verify(comparisonUtils).compareSimple(new DbProperty(thisFK, "localColumn"), new DbProperty(thatFK, "localColumn"), ctx);
    inOrder.verify(comparisonUtils).compareSimple(new DbProperty(thisFK, "targetTable"), new DbProperty(thatFK, "targetTable"), ctx);
    inOrder.verify(comparisonUtils).compareSimple(new DbProperty(thisFK, "targetColumn"), new DbProperty(thatFK, "targetColumn"), ctx);
}
Also used : DbProperty(org.alfresco.util.schemacomp.DbProperty)

Aggregations

DbProperty (org.alfresco.util.schemacomp.DbProperty)17 ValidationResult (org.alfresco.util.schemacomp.ValidationResult)4 AlfrescoRuntimeException (org.alfresco.error.AlfrescoRuntimeException)2 Test (org.junit.Test)2 Column (org.alfresco.util.schemacomp.model.Column)1 Index (org.alfresco.util.schemacomp.model.Index)1 Schema (org.alfresco.util.schemacomp.model.Schema)1 InOrder (org.mockito.InOrder)1