use of org.dbflute.exception.DfTakeFinallyAssertionFailureEmptyTableException in project dbflute-core by dbflute.
the class DfConventionalTakeAsserter method throwTakeFinallyAssertionFailureEmptyTableException.
protected void throwTakeFinallyAssertionFailureEmptyTableException(final List<DfTableMeta> emptyTableList) {
final ExceptionMessageBuilder br = new ExceptionMessageBuilder();
br.addNotice("Found the empty table (no-data) after ReplaceSchema.");
br.addItem("Advice");
br.addElement("The tables should have at least one record");
br.addElement("by conventionalTakeAssertMap settings in replaceSchemaMap.dfprop:");
br.addElement("");
br.addElement(Srl.indent(2, _dispPropertiesProvider.get()));
br.addElement("");
br.addElement("So prepare the data (e.g. tsv or xls) for ReplaceSchema.");
br.addElement("");
br.addElement(" playsql");
br.addElement(" |-data");
br.addElement(" | |-common");
br.addElement(" | | |-tsv");
br.addElement(" | | |-xls");
br.addElement(" | |-ut");
br.addElement(" | | |-tsv");
br.addElement(" | | |-xls");
br.addElement(" ...");
br.addElement("");
br.addElement("Or adjust dfprop settings, for example,");
br.addElement("you can except the table if it cannot be help.");
br.addElement("(Of course, do after you ask your friends developing together)");
br.addItem("Empty Table");
for (DfTableMeta tableMeta : emptyTableList) {
br.addElement(tableMeta.getTableDispName());
}
final String msg = br.buildExceptionMessage();
throw new DfTakeFinallyAssertionFailureEmptyTableException(msg);
}
Aggregations