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 voidcontains(@Nullable Object rowKey, @Nullable Object columnKey)Fails if the table does not contain a mapping for the given row key and column key.voidcontainsCell(@Nullable Object rowKey, @Nullable Object colKey, @Nullable Object value)Fails if the table does not contain the given cell.voidcontainsCell(Table.Cell<?,?,?> cell)Fails if the table does not contain the given cell.voidcontainsColumn(@Nullable Object columnKey)Fails if the table does not contain the given column key.voidcontainsRow(@Nullable Object rowKey)Fails if the table does not contain the given row key.voidcontainsValue(@Nullable Object value)Fails if the table does not contain the given value.voiddoesNotContain(@Nullable Object rowKey, @Nullable Object columnKey)Fails if the table contains a mapping for the given row key and column key.voiddoesNotContainCell(@Nullable Object rowKey, @Nullable Object colKey, @Nullable Object value)Fails if the table contains the given cell.voiddoesNotContainCell(Table.Cell<?,?,?> cell)Fails if the table contains the given cell.voidhasSize(int expectedSize)Fails if the table does not have the given size.voidisEmpty()Fails if the table is not empty.voidisNotEmpty()Fails if the table is 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()
Fails if the table is not empty.
-
isNotEmpty
public void isNotEmpty()
Fails if the table is empty.
-
hasSize
public final void hasSize(int expectedSize)
Fails if the table does not have the given size.
-
contains
public void contains(@Nullable Object rowKey, @Nullable Object columnKey)
Fails if the table does not contain a mapping for the given row key and column key.
-
doesNotContain
public void doesNotContain(@Nullable Object rowKey, @Nullable Object columnKey)
Fails if the table contains a mapping for the given row key and column key.
-
containsCell
public void containsCell(@Nullable Object rowKey, @Nullable Object colKey, @Nullable Object value)
Fails if the table does not contain the given cell.
-
containsCell
public void containsCell(Table.Cell<?,?,?> cell)
Fails if the table does not contain the given cell.
-
doesNotContainCell
public void doesNotContainCell(@Nullable Object rowKey, @Nullable Object colKey, @Nullable Object value)
Fails if the table contains the given cell.
-
doesNotContainCell
public void doesNotContainCell(Table.Cell<?,?,?> cell)
Fails if the table contains the given cell.
-
containsRow
public void containsRow(@Nullable Object rowKey)
Fails if the table does not contain the given row key.
-
containsColumn
public void containsColumn(@Nullable Object columnKey)
Fails if the table does not contain the given column key.
-
containsValue
public void containsValue(@Nullable Object value)
Fails if the table does not contain the given value.
-
-