Skip to content

Commit

Permalink
2024.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
toronik committed Aug 9, 2024
1 parent 236ff31 commit dbd4596
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@ abstract class ExamCommand<M, R>(
}
listener.executeCompleted(ExecuteEvent(commandCall.element))
}.onFailure {
if (inBeforeExample(commandCall)) {
throw FailFastException("Failed before example", it)
} else throw it
if (inBeforeExample(commandCall)) throw FailFastException("Failed before example", it) else throw it
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import io.github.adven27.concordion.extensions.exam.core.ExamPlugin
import io.github.adven27.concordion.extensions.exam.core.html.pre
import io.github.adven27.concordion.extensions.exam.core.html.span
import io.github.adven27.concordion.extensions.exam.db.commands.DbCleanCommand
import io.github.adven27.concordion.extensions.exam.db.commands.set.DbSetCommand
import io.github.adven27.concordion.extensions.exam.db.commands.DbShowCommand
import io.github.adven27.concordion.extensions.exam.db.commands.ExamMatchersAwareValueComparer
import io.github.adven27.concordion.extensions.exam.db.commands.check.DbCheckCommand
import io.github.adven27.concordion.extensions.exam.db.commands.set.DbSetCommand
import mu.KLogging
import org.concordion.api.Command
import org.concordion.api.Element
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,11 @@ open class DbTester @JvmOverloads constructor(
sortedTable(actual.getTable(table), sortCols, dbUnitConfig.overrideRowSortingComparer),
columns(expectedTable, sortCols).toTypedArray()
)
expectedTable = sortedTable(CompositeTable(actualTable.tableMetaData, expectedTable), sortCols, dbUnitConfig.overrideRowSortingComparer)
expectedTable = sortedTable(
table = CompositeTable(actualTable.tableMetaData, expectedTable),
columns = sortCols,
rowComparator = dbUnitConfig.overrideRowSortingComparer
)
if (compareOperation == CompareOperation.CONTAINS) {
actualTable = ContainsFilterTable(actualTable, expectedTable, excludeCols.toList())
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ class DbCheckParser(val dbTester: DbTester) : DbCheckCommand.Parser, BaseParser(
ds = context[DS],
await = context.awaitConfig,
compareOperation = compareStrategy(context),
orderBy = orderBy(context),
orderBy = orderBy(context)
)

isBlock(context) -> DataSetExpectation(
buildDataSetFromBlock(dbTester, context.el, context.eval),
ds = context[DS],
await = context.awaitConfig,
compareOperation = compareStrategy(context),
orderBy = orderBy(context),
orderBy = orderBy(context)
)

isTable(context) -> TableExpectation(
Expand Down

0 comments on commit dbd4596

Please sign in to comment.