public final class TableAssert<R,C,V> extends org.assertj.core.api.AbstractAssert<TableAssert<R,C,V>,com.google.common.collect.Table<R,C,V>>
Modifier | Constructor and Description |
---|---|
protected |
TableAssert(com.google.common.collect.Table<R,C,V> actual) |
Modifier and Type | Method and Description |
---|---|
TableAssert<R,C,V> |
containsColumns(C... columns)
Verifies that the actual
Table contains the given columns. |
TableAssert<R,C,V> |
containsRows(R... rows)
Verifies that the actual
Table contains the given rows. |
TableAssert<R,C,V> |
containsValues(V... values)
Verifies that the actual
Table contains the given values for any key. |
protected com.google.common.collect.Table<R,C,V> |
getActual() |
void |
isEmpty()
Verifies that the actual
Table is empty. |
as, as, describedAs, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, equals, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, is, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, overridingErrorMessage, usingComparator, usingDefaultComparator
public TableAssert<R,C,V> containsRows(R... rows)
Table
contains the given rows.rows
- The columns to look for in the actual Table
TableAssert
for assertion chaining.IllegalArgumentException
- if no param rows have been set.AssertionError
- if the actual Table
is null
.AssertionError
- if the actual Table
does not contain the given rows.public TableAssert<R,C,V> containsColumns(C... columns)
Table
contains the given columns.columns
- The columns to look for in the actual Table
TableAssert
for assertion chaining.IllegalArgumentException
- if no param columns have been set.AssertionError
- if the actual Table
is null
.AssertionError
- if the actual Table
does not contain the given columns.public TableAssert<R,C,V> containsValues(V... values)
Table
contains the given values for any key.values
- The values to look for in the actual Table
TableAssert
for assertion chaining.IllegalArgumentException
- if no param values have been set.AssertionError
- if the actual Table
is null
.AssertionError
- if the actual Table
does not contain the given values.public void isEmpty()
Table
is empty.AssertionError
- if the actual Table
is null
.AssertionError
- if the actual Table
is not empty.Copyright © 2013 AssertJ. All Rights Reserved.