Search in sources :

Example 1 with DfConventionalTakeAssertMap

use of org.dbflute.properties.assistant.reps.DfConventionalTakeAssertMap in project dbflute-core by dbflute.

the class DfTakeFinallyProcess method conventionalTakeAssertIfNeeds.

// ===================================================================================
// Conventional TakeAssert
// =======================
protected void conventionalTakeAssertIfNeeds() {
    if (_suppressConventionalTakeAssert) {
        // e.g. as previous, alter-check
        return;
    }
    final DfConventionalTakeAssertMap map = getReplaceSchemaProperties().getConventionalTakeAssertMap();
    if (!map.hasConventionalTakeAssert()) {
        return;
    }
    _log.info("");
    _log.info("...Executing conventional take-assert (in take-finally)");
    map.showProperties();
    final DfConventionalTakeAsserter asserter = createConventionalTakeAsserter(map);
    asserter.assertConventionally();
}
Also used : DfConventionalTakeAssertMap(org.dbflute.properties.assistant.reps.DfConventionalTakeAssertMap) DfConventionalTakeAsserter(org.dbflute.logic.replaceschema.takefinally.conventional.DfConventionalTakeAsserter)

Example 2 with DfConventionalTakeAssertMap

use of org.dbflute.properties.assistant.reps.DfConventionalTakeAssertMap in project dbflute-core by dbflute.

the class DfConventionalTakeAsserter method assertConventionally.

// ===================================================================================
// Execute
// =======
public void assertConventionally() {
    final DfReplaceSchemaProperties repsProp = getReplaceSchemaProperties();
    final DfConventionalTakeAssertMap propMap = repsProp.getConventionalTakeAssertMap();
    if (propMap.isEmptyTableFailure()) {
        _log.info("...Checking conventional empty tables");
        if (propMap.isEmptyTableWorkableEnv()) {
            doAssertEmptyTable(propMap);
        } else {
            _log.info(" => out of target environment so do nothing: currentEnv=" + repsProp.getRepsEnvType());
        }
    }
}
Also used : DfReplaceSchemaProperties(org.dbflute.properties.DfReplaceSchemaProperties) DfConventionalTakeAssertMap(org.dbflute.properties.assistant.reps.DfConventionalTakeAssertMap)

Aggregations

DfConventionalTakeAssertMap (org.dbflute.properties.assistant.reps.DfConventionalTakeAssertMap)2 DfConventionalTakeAsserter (org.dbflute.logic.replaceschema.takefinally.conventional.DfConventionalTakeAsserter)1 DfReplaceSchemaProperties (org.dbflute.properties.DfReplaceSchemaProperties)1