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();
}
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());
}
}
}
Aggregations