public final class ConfigurationProvider
extends java.lang.Object
All the configuration possibilities are registered via an SPI.
Modifier and Type | Field and Description |
---|---|
private Configuration |
configuration |
static ConfigurationProvider |
CONFIGURATION_PROVIDER |
private Representation |
representation |
Modifier | Constructor and Description |
---|---|
private |
ConfigurationProvider() |
Modifier and Type | Method and Description |
---|---|
Configuration |
configuration()
Returns the configuration used in for all tests.
|
static void |
loadRegisteredConfiguration()
Triggers loading any registered
Configuration . |
Representation |
representation()
Returns the default
Representation that needs to be used within AssertJ, which is taken first from:
a registered Configuration.representation() if any
a registered Representation
If no custom representation was registered, the StandardRepresentation will be used. |
public static final ConfigurationProvider CONFIGURATION_PROVIDER
private final Representation representation
private final Configuration configuration
public Representation representation()
Representation
that needs to be used within AssertJ, which is taken first from:
Configuration.representation()
if any Representation
StandardRepresentation
will be used.Representation
that needs to be used within AssertJpublic Configuration configuration()
public static void loadRegisteredConfiguration()
Configuration
.
This method should be called before any user configuration changes to make sure these are not overridden by a registered Configuration
later on.