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

public final Class ConfigurationProvider

extends Object
Class Inheritance
Static Imports
java.lang.String.format, org.assertj.core.configuration.Configuration.DEFAULT_CONFIGURATION

Provider for all the configuration settings / parameters within AssertJ.

All the configuration possibilities are registered via an SPI.

Author
Filip Hrisafov
Since
2.9.0 / 3.9.0

Field Summary

Modifier and TypeField and Description
private CompositeRepresentation
private final Configuration
public static final ConfigurationProvider

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Configuration

Returns:

the configuration applied for all tests.
configuration
()

Returns the configuration used in for all tests.

public static void
loadRegisteredConfiguration()

Triggers loading any registered Configuration.

public Representation

Returns:

the default Representation that needs to be used within AssertJ
representation
()

Returns the Representation that AssertJ will use, which is taken first from:

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

compositeRepresentationback to summary
private CompositeRepresentation compositeRepresentation
configurationback to summary
private final Configuration configuration
CONFIGURATION_PROVIDERback to summary
public static final ConfigurationProvider CONFIGURATION_PROVIDER

Constructor Detail

ConfigurationProviderback to summary
private ConfigurationProvider()

Method Detail

configurationback to summary
public Configuration configuration()

Returns the configuration used in for all tests.

Returns:Configuration

the configuration applied for all tests.

Since
3.13.0
loadRegisteredConfigurationback to summary
public static void loadRegisteredConfiguration()

Triggers loading any registered Configuration.

This method should be called before any user configuration changes to make sure these are not overridden by a registered Configuration later on.

representationback to summary
public Representation representation()

Returns the Representation that AssertJ will use, which is taken first from:

If no custom representation was registered or overridden in a specific Configuration, the StandardRepresentation is used.

Returns:Representation

the default Representation that needs to be used within AssertJ

Since
2.9.0 / 3.9.0, 3.22.0 support for registered multiple Representations with priority.