Package io.trino.tempto.assertions
Class QueryAssert
java.lang.Object
org.assertj.core.api.AbstractAssert<QueryAssert,QueryResult>
io.trino.tempto.assertions.QueryAssert
- All Implemented Interfaces:
org.assertj.core.api.Assert<QueryAssert,,QueryResult> org.assertj.core.api.Descriptable<QueryAssert>,org.assertj.core.api.ExtensionPoints<QueryAssert,QueryResult>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic interfacestatic classDeprecated.static class -
Field Summary
Fields inherited from class org.assertj.core.api.AbstractAssert
actual, info, myself, objects, throwUnsupportedExceptionOnEquals -
Method Summary
Modifier and TypeMethodDescriptionstatic QueryAssert.AcceptableValuesstatic org.assertj.core.api.AbstractThrowableAssert<?,? extends Throwable> assertQueryFailure(QueryAssert.QueryCallback queryCallback) assertThat(QueryAssert.QueryCallback queryCallback) Deprecated.static QueryAssertassertThat(QueryResult queryResult) Deprecated.<T> QueryAssertcolumn(int columnIndex, JDBCType type, ColumnValuesAssert<T> columnValuesAssert) <T> QueryAssertcolumn(String columnName, JDBCType type, ColumnValuesAssert<T> columnValuesAssert) contains(QueryAssert.Row... rows) contains(List<QueryAssert.Row> rows) Verifies that the actual result set contains all the givenrowscontainsExactly(QueryAssert.Row... rows) Deprecated.containsExactly(List<QueryAssert.Row> rows) Deprecated.containsExactlyInOrder(QueryAssert.Row... rows) Verifies that the actual result set equals torows.containsOnly(QueryAssert.Row... rows) containsOnly(List<QueryAssert.Row> rows) Verifies that the actual result set consist of onlyrowsin any orderhasColumns(JDBCType... expectedTypes) hasColumns(List<JDBCType> expectedTypes) hasColumnsCount(int columnCount) hasRowsCount(int resultCount) matches(SqlResultDescriptor sqlResultDescriptor) updatedRowsCountIsEqualTo(int count) Verifies number of rows updated/inserted by last update queryMethods inherited from class org.assertj.core.api.AbstractAssert
areEqual, asInstanceOf, asList, assertionError, asString, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, doesNotHaveSameHashCodeAs, doesNotHaveToString, equals, extracting, extracting, failure, failureWithActualExpected, failWithActualExpectedAndMessage, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, hasToString, inBinary, inHexadecimal, is, isElementOfCustomAssert, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isInstanceOfSatisfying, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, matches, matches, newListAssertInstance, overridingErrorMessage, overridingErrorMessage, satisfies, satisfies, satisfies, satisfiesAnyOf, satisfiesAnyOf, satisfiesAnyOfForProxy, satisfiesForProxy, setCustomRepresentation, setDescriptionConsumer, setPrintAssertionsDescription, throwAssertionError, usingComparator, usingComparator, usingDefaultComparator, usingRecursiveAssertion, usingRecursiveAssertion, usingRecursiveComparison, usingRecursiveComparison, withFailMessage, withFailMessage, withRepresentation, withThreadDumpOnErrorMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.assertj.core.api.Descriptable
as, as, as, describedAs
-
Method Details
-
assertThat
Deprecated.UseAssertions.assertThat(AssertProvider). -
assertThat
@Deprecated @CheckReturnValue public static QueryAssert.QueryExecutionAssert assertThat(QueryAssert.QueryCallback queryCallback) Deprecated.UseassertQueryFailure(QueryCallback)instead. -
assertQueryFailure
@CheckReturnValue public static org.assertj.core.api.AbstractThrowableAssert<?,? extends Throwable> assertQueryFailure(QueryAssert.QueryCallback queryCallback) -
matches
-
hasRowsCount
-
hasNoRows
-
hasAnyRows
-
hasColumnsCount
-
hasColumns
-
hasColumns
-
contains
Verifies that the actual result set contains all the givenrows- Parameters:
rows- Rows to be matched- Returns:
- this
-
contains
- Parameters:
rows- Rows to be matched- Returns:
- this
- See Also:
-
containsOnly
Verifies that the actual result set consist of onlyrowsin any order- Parameters:
rows- Rows to be matched- Returns:
- this
-
containsOnly
- Parameters:
rows- Rows to be matched- Returns:
- this
- See Also:
-
containsExactly
Deprecated. -
containsExactlyInOrder
Verifies that the actual result set equals torows. ResultSet in different order or with any extra rows perceived as not same- Parameters:
rows- Rows to be matched- Returns:
- this
-
containsExactly
Deprecated. -
containsExactlyInOrder
- Parameters:
rows- Rows to be matched- Returns:
- this
- See Also:
-
updatedRowsCountIsEqualTo
Verifies number of rows updated/inserted by last update query- Parameters:
count- Number of rows expected- Returns:
- this
-
column
public <T> QueryAssert column(int columnIndex, JDBCType type, ColumnValuesAssert<T> columnValuesAssert) -
column
public <T> QueryAssert column(String columnName, JDBCType type, ColumnValuesAssert<T> columnValuesAssert) -
anyOf
-
assertQueryFailure(QueryCallback)instead.