Top Description Fields Constructors Methods
org.assertj.core.error

public Class ShouldHaveRecordComponents

extends BasicErrorMessageFactory
Class Inheritance
Imports
java.util.Set

Creates an error message indicating that an assertion that verifies that a class has record components failed.
Author
Louis Morgan

Field Summary

Inherited from org.assertj.core.error.BasicErrorMessageFactory:
argumentsformatformatter

Constructor Summary

AccessConstructor and Description
private
ShouldHaveRecordComponents(Class<?> actual, Set<String> expected, Set<String> missing)

Method Summary

Modifier and TypeMethod and Description
public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldHaveRecordComponents
(Class<?>
the actual value in the failed assertion.
actual
,
Set<String>
expected record components for this class
expected
,
Set<String>
missing record components for this class
missing
)

Creates a new ShouldHaveRecordComponents

Inherited from org.assertj.core.error.BasicErrorMessageFactory:
createcreatecreateequalshashCodetoStringunquotedString

Constructor Detail

ShouldHaveRecordComponentsback to summary
private ShouldHaveRecordComponents(Class<?> actual, Set<String> expected, Set<String> missing)

Method Detail

shouldHaveRecordComponentsback to summary
public static ErrorMessageFactory shouldHaveRecordComponents(Class<?> actual, Set<String> expected, Set<String> missing)

Creates a new ShouldHaveRecordComponents

Parameters
actual:Class<?>

the actual value in the failed assertion.

expected:Set<String>

expected record components for this class

missing:Set<String>

missing record components for this class

Returns:ErrorMessageFactory

the created ErrorMessageFactory.