Class TableShouldContainCell

  • All Implemented Interfaces:
    org.assertj.core.error.ErrorMessageFactory

    public class TableShouldContainCell
    extends org.assertj.core.error.BasicErrorMessageFactory
    Author:
    David Harris
    • Field Summary

      • Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory

        arguments, format
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private TableShouldContainCell​(com.google.common.collect.Table<R,​C,​V> actual, R row, C column, V expectedValue, V actualValue)  
    • Constructor Detail

      • TableShouldContainCell

        private TableShouldContainCell​(com.google.common.collect.Table<R,​C,​V> actual,
                                       R row,
                                       C column,
                                       V expectedValue,
                                       V actualValue)
    • Method Detail

      • tableShouldContainCell

        public static <R,​C,​V> org.assertj.core.error.ErrorMessageFactory tableShouldContainCell​(com.google.common.collect.Table<R,​C,​V> actual,
                                                                                                            R row,
                                                                                                            C column,
                                                                                                            V expectedValue,
                                                                                                            V actualValue)
        Creates a new TableShouldContainCell.
        Type Parameters:
        R - the type of the table row keys
        C - the type of the table column keys
        V - the type of the mapped values
        Parameters:
        actual - the actual value in the failed assertion.
        row - the row where actualValue was read.
        column - the column where actualValue was read.
        expectedValue - the expected value of the cell.
        actualValue - the expected actual value of the cell.
        Returns:
        the created ErrorMessageFactory.