Package com.google.common.truth
Class TableSubject
java.lang.Object
com.google.common.truth.Subject
com.google.common.truth.TableSubject
Propositions for
Table subjects.-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.common.truth.Subject
Subject.EqualityCheck, Subject.Factory<SubjectT extends Subject,ActualT> -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTableSubject(FailureMetadata metadata, com.google.common.collect.Table<?, ?, ?> table) -
Method Summary
Modifier and TypeMethodDescriptionvoidFails if the table does not contain a mapping for the given row key and column key.voidcontainsCell(com.google.common.collect.Table.Cell<?, ?, ?> cell) Fails if the table does not contain the given cell.voidcontainsCell(Object rowKey, Object colKey, Object value) Fails if the table does not contain the given cell.voidcontainsColumn(Object columnKey) Fails if the table does not contain the given column key.voidcontainsRow(Object rowKey) Fails if the table does not contain the given row key.voidcontainsValue(Object value) Fails if the table does not contain the given value.voiddoesNotContain(Object rowKey, Object columnKey) Fails if the table contains a mapping for the given row key and column key.voiddoesNotContainCell(com.google.common.collect.Table.Cell<?, ?, ?> cell) Fails if the table contains the given cell.voiddoesNotContainCell(Object rowKey, Object colKey, Object value) Fails if the table contains the given cell.final voidhasSize(int expectedSize) Fails if the table does not have the given size.voidisEmpty()Fails if the table is not empty.voidFails if the table is empty.Methods inherited from class com.google.common.truth.Subject
actual, actualCustomStringRepresentation, actualCustomStringRepresentationForPackageMembersToCall, butWas, check, check, checkNoNeedToDisplayBothValues, equals, fail, fail, fail, failEqualityCheckForEqualsWithoutDescription, failWithActual, failWithActual, failWithActual, failWithActual, failWithBadResults, failWithCustomSubject, failWithoutActual, failWithoutActual, failWithoutActual, failWithoutActual, failWithoutSubject, hashCode, ignoreCheck, isAnyOf, isEqualTo, isIn, isInstanceOf, isNoneOf, isNotEqualTo, isNotIn, isNotInstanceOf, isNotNull, isNotSameInstanceAs, isNull, isSameInstanceAs, toString, typeDescription
-
Field Details
-
actual
private final com.google.common.collect.Table<?,?, actual?>
-
-
Constructor Details
-
TableSubject
TableSubject(FailureMetadata metadata, com.google.common.collect.Table<?, ?, ?> table)
-
-
Method Details
-
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
Fails if the table does not contain a mapping for the given row key and column key. -
doesNotContain
Fails if the table contains a mapping for the given row key and column key. -
containsCell
Fails if the table does not contain the given cell. -
containsCell
public void containsCell(com.google.common.collect.Table.Cell<?, ?, ?> cell) Fails if the table does not contain the given cell. -
doesNotContainCell
Fails if the table contains the given cell. -
doesNotContainCell
public void doesNotContainCell(com.google.common.collect.Table.Cell<?, ?, ?> cell) Fails if the table contains the given cell. -
containsRow
Fails if the table does not contain the given row key. -
containsColumn
Fails if the table does not contain the given column key. -
containsValue
Fails if the table does not contain the given value.
-