Search in sources :

Example 1 with DiffContext

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

the class NameValidatorTest method setUp.

@Before
public void setUp() throws Exception {
    validator = new NameValidator();
    validationResults = new Results();
    ctx = new DiffContext(new Oracle9Dialect(), validationResults, null, null);
}
Also used : DiffContext(org.alfresco.util.schemacomp.DiffContext) Results(org.alfresco.util.schemacomp.Results) Oracle9Dialect(org.alfresco.repo.domain.dialect.Oracle9Dialect) Before(org.junit.Before)

Example 2 with DiffContext

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

the class DbObjectTestBase method baseSetUp.

@Before
public final void baseSetUp() {
    // Check that the correct calls happened in the correct order.
    List<Object> mocks = getMocksUsedInDiff();
    inOrder = inOrder(mocks.toArray());
    ctx = new DiffContext(dialect, differences, null, null);
}
Also used : DiffContext(org.alfresco.util.schemacomp.DiffContext) Before(org.junit.Before)

Example 3 with DiffContext

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

the class SchemaVersionValidatorTest method setUp.

@Before
public void setUp() {
    validator = new SchemaVersionValidator();
    results = new Results();
    ctx = new DiffContext(null, results, null, null);
}
Also used : DiffContext(org.alfresco.util.schemacomp.DiffContext) Results(org.alfresco.util.schemacomp.Results) Before(org.junit.Before)

Example 4 with DiffContext

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

the class TypeNameOnlyValidatorTest method setUp.

@Before
public void setUp() throws Exception {
    validator = new TypeNameOnlyValidator();
    validationResults = new Results();
    ctx = new DiffContext(new SQLServerDialect(), validationResults, null, null);
}
Also used : DiffContext(org.alfresco.util.schemacomp.DiffContext) SQLServerDialect(org.alfresco.repo.domain.dialect.SQLServerDialect) Results(org.alfresco.util.schemacomp.Results) Before(org.junit.Before)

Example 5 with DiffContext

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

the class IndexColumnsValidatorTest method setUp.

@Before
public void setUp() throws Exception {
    validator = new IndexColumnsValidator();
    validationResults = new Results();
    ctx = new DiffContext(new Oracle9Dialect(), validationResults, null, null);
}
Also used : DiffContext(org.alfresco.util.schemacomp.DiffContext) Results(org.alfresco.util.schemacomp.Results) Oracle9Dialect(org.alfresco.repo.domain.dialect.Oracle9Dialect) Before(org.junit.Before)

Aggregations

DiffContext (org.alfresco.util.schemacomp.DiffContext)6 Before (org.junit.Before)6 Results (org.alfresco.util.schemacomp.Results)4 Oracle9Dialect (org.alfresco.repo.domain.dialect.Oracle9Dialect)2 SQLServerDialect (org.alfresco.repo.domain.dialect.SQLServerDialect)1