Package com.google.common.truth
Class TableSubject
- java.lang.Object
-
- com.google.common.truth.Subject
-
- com.google.common.truth.TableSubject
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.common.truth.Subject
Subject.Factory<SubjectT extends Subject,ActualT>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
contains(@Nullable Object rowKey, @Nullable Object columnKey)
Checks that the actual table contains a mapping for the given row key and column key.void
containsCell(@Nullable Table.Cell<?,?,?> cell)
Checks that the actual table contains the given cell.void
containsCell(@Nullable Object rowKey, @Nullable Object columnKey, @Nullable Object value)
Checks that the actual table contains the given cell.void
containsColumn(@Nullable Object columnKey)
Checks that the actual table contains the given column key.void
containsRow(@Nullable Object rowKey)
Checks that the actual table contains the given row key.void
containsValue(@Nullable Object value)
Checks that the actual table contains the given value.void
doesNotContain(@Nullable Object rowKey, @Nullable Object columnKey)
Checks that the actual table does not contain a mapping for the given row key and column key.void
doesNotContainCell(@Nullable Table.Cell<?,?,?> cell)
Checks that the actual table does not contain the given cell.void
doesNotContainCell(@Nullable Object rowKey, @Nullable Object columnKey, @Nullable Object value)
Checks that the actual table does not contain the given cell.void
hasSize(int size)
Checks that the actual table has the given size.void
isEmpty()
Checks that the actual table is empty.void
isNotEmpty()
Checks that the actual table is not empty.-
Methods inherited from class com.google.common.truth.Subject
actualCustomStringRepresentation, check, equals, failWithActual, failWithActual, failWithoutActual, hashCode, ignoreCheck, isAnyOf, isEqualTo, isIn, isInstanceOf, isNoneOf, isNotEqualTo, isNotIn, isNotInstanceOf, isNotNull, isNotSameInstanceAs, isNull, isSameInstanceAs, toString
-
-
-
-
Method Detail
-
isEmpty
public void isEmpty()
Checks that the actual table is empty.
-
isNotEmpty
public void isNotEmpty()
Checks that the actual table is not empty.
-
hasSize
public void hasSize(int size)
Checks that the actual table has the given size.
-
contains
public void contains(@Nullable Object rowKey, @Nullable Object columnKey)
Checks that the actual table contains a mapping for the given row key and column key.
-
doesNotContain
public void doesNotContain(@Nullable Object rowKey, @Nullable Object columnKey)
Checks that the actual table does not contain a mapping for the given row key and column key.
-
containsCell
public void containsCell(@Nullable Object rowKey, @Nullable Object columnKey, @Nullable Object value)
Checks that the actual table contains the given cell.
-
containsCell
public void containsCell(@Nullable Table.Cell<?,?,?> cell)
Checks that the actual table contains the given cell.
-
doesNotContainCell
public void doesNotContainCell(@Nullable Object rowKey, @Nullable Object columnKey, @Nullable Object value)
Checks that the actual table does not contain the given cell.
-
doesNotContainCell
public void doesNotContainCell(@Nullable Table.Cell<?,?,?> cell)
Checks that the actual table does not contain the given cell.
-
containsRow
public void containsRow(@Nullable Object rowKey)
Checks that the actual table contains the given row key.
-
containsColumn
public void containsColumn(@Nullable Object columnKey)
Checks that the actual table contains the given column key.
-
-