Package org.assertj.core.error
Class ShouldHaveRecordComponents
java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.error.ShouldHaveRecordComponents
- All Implemented Interfaces:
ErrorMessageFactory
Creates an error message indicating that an assertion that verifies that a class has record components failed.
- Author:
- Louis Morgan
-
Field Summary
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format -
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorMessageFactoryCreates a newShouldHaveRecordComponentsMethods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
Method Details
-
shouldHaveRecordComponents
public static ErrorMessageFactory shouldHaveRecordComponents(Class<?> actual, Set<String> expected, Set<String> missing) Creates a newShouldHaveRecordComponents- Parameters:
actual- the actual value in the failed assertion.expected- expected record components for this classmissing- missing record components for this class- Returns:
- the created
ErrorMessageFactory.
-