public final class ConfigurationProvider extends Object
All the configuration possibilities are registered via an SPI.
| Modifier and Type | Field and Description |
|---|---|
static ConfigurationProvider |
CONFIGURATION_PROVIDER |
| 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
Representation that AssertJ will use, which is taken first from:
the representation returned by a custom Configuration through Configuration.representation() but only if it is different from the StandardRepresentation
the Representation with highest priority loaded from the classpath by the ServiceLoader
If no custom representation was registered or overridden in a specific Configuration, the StandardRepresentation is used. |
public static final ConfigurationProvider CONFIGURATION_PROVIDER
public Representation representation()
Representation that AssertJ will use, which is taken first from:
Configuration through Configuration.representation() but only if it is different from the StandardRepresentationRepresentation with highest priority loaded from the classpath by the ServiceLoaderConfiguration, the StandardRepresentation is used.
Representation that needs to be used within AssertJRepresentations with priority.public 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.
Copyright © 2025. All rights reserved.