Package org.assertj.core.configuration
Class ConfigurationProvider
java.lang.Object
org.assertj.core.configuration.ConfigurationProvider
Provider for all the configuration settings / parameters within AssertJ.
All the configuration possibilities are registered via an SPI.
- Since:
- 2.9.0 / 3.9.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Configuration
static final ConfigurationProvider
private final Representation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the configuration used in for all tests.static void
Triggers loading any registeredConfiguration
.Returns the defaultRepresentation
that needs to be used within AssertJ, which is taken first from: a registeredConfiguration.representation()
if any a registeredRepresentation
If no custom representation was registered, theStandardRepresentation
will be used.
-
Field Details
-
CONFIGURATION_PROVIDER
-
representation
-
configuration
-
-
Constructor Details
-
ConfigurationProvider
private ConfigurationProvider()
-
-
Method Details
-
representation
Returns the defaultRepresentation
that needs to be used within AssertJ, which is taken first from:- a registered
Configuration.representation()
if any - a registered
Representation
StandardRepresentation
will be used.- Returns:
- the default
Representation
that needs to be used within AssertJ - Since:
- 2.9.0 / 3.9.0
- a registered
-
configuration
Returns the configuration used in for all tests.- Returns:
- the configuration applied for all tests.
- Since:
- 3.13.0
-
loadRegisteredConfiguration
public static void loadRegisteredConfiguration()Triggers loading any registeredConfiguration
.This method should be called before any user configuration changes to make sure these are not overridden by a registered
Configuration
later on.
-