Class ShouldHavePropertyOrFieldWithValue

  • All Implemented Interfaces:
    ErrorMessageFactory

    public class ShouldHavePropertyOrFieldWithValue
    extends BasicErrorMessageFactory
    Creates an error message indicating that an assertion that verifies that a class has a field/property with a value.
    • Constructor Detail

      • ShouldHavePropertyOrFieldWithValue

        private ShouldHavePropertyOrFieldWithValue​(java.lang.Object actual,
                                                   java.lang.String name,
                                                   java.lang.Object expectedValue,
                                                   java.lang.Object actualValue)
    • Method Detail

      • shouldHavePropertyOrFieldWithValue

        public static ErrorMessageFactory shouldHavePropertyOrFieldWithValue​(java.lang.Object actual,
                                                                             java.lang.String name,
                                                                             java.lang.Object expectedValue,
                                                                             java.lang.Object actualValue)
        Parameters:
        actual - the actual value in the failed assertion.
        name - expected name of the field of this class
        expectedValue - expected value of the field of the class
        actualValue - actual value of the field of the class
        Returns:
        the created ErrorMessageFactory.