Class TableSubject

java.lang.Object
com.google.common.truth.Subject
com.google.common.truth.TableSubject

public final class TableSubject extends Subject
Propositions for Table subjects.
  • 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

      public void contains(Object rowKey, Object columnKey)
      Fails if the table does not contain a mapping for the given row key and column key.
    • doesNotContain

      public void doesNotContain(Object rowKey, Object columnKey)
      Fails if the table contains a mapping for the given row key and column key.
    • containsCell

      public void containsCell(Object rowKey, Object colKey, Object value)
      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

      public void doesNotContainCell(Object rowKey, Object colKey, Object value)
      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

      public void containsRow(Object rowKey)
      Fails if the table does not contain the given row key.
    • containsColumn

      public void containsColumn(Object columnKey)
      Fails if the table does not contain the given column key.
    • containsValue

      public void containsValue(Object value)
      Fails if the table does not contain the given value.