Package org.gridgain.tpcds.answer
Class AnswerAssertions
java.lang.Object
org.gridgain.tpcds.answer.AnswerAssertions
Assertions for comparing TPC-DS query results with expected answers.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidAsserts that the actual query results match the expected answers.static voidAssert that given row matches expected row.static voidassertValue(String expectedAnsValue, Object actualValue) Asserts that an actual value matches the expected ANS value.static voidassertValue(String reason, String expectedAnsValue, Object actualValue) Asserts that an actual value matches the expected ANS value with a custom failure reason.static org.hamcrest.Matcher<Object>isAnsValue(String expectedAnsValue)
-
Constructor Details
-
AnswerAssertions
public AnswerAssertions()
-
-
Method Details
-
assertQueryResults
Asserts that the actual query results match the expected answers.- Parameters:
expected- The expected results.actual- The actual results from executing the query.
-
assertRow
Assert that given row matches expected row.- Parameters:
rowIdx- index of the row in the overall resultset, used to provide useful error message.expectedRow- sample row that we expect.actualRow- actual row that we should match against expected row.
-
assertValue
Asserts that an actual value matches the expected ANS value.- Parameters:
expectedAnsValue- The expected value in ANS format.actualValue- The actual value to check.
-
assertValue
Asserts that an actual value matches the expected ANS value with a custom failure reason.- Parameters:
reason- The custom failure message to display if the assertion fails.expectedAnsValue- The expected value in ANS format.actualValue- The actual value to check.
-
isAnsValue
-