Class ConfigurationProvider

java.lang.Object
org.assertj.core.configuration.ConfigurationProvider

public final class ConfigurationProvider extends Object
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 Details

  • Constructor Details

    • ConfigurationProvider

      private ConfigurationProvider()
  • Method Details

    • representation

      public Representation representation()
      Returns the default Representation that needs to be used within AssertJ, which is taken first from: If no custom representation was registered, the StandardRepresentation will be used.
      Returns:
      the default Representation that needs to be used within AssertJ
      Since:
      2.9.0 / 3.9.0
    • configuration

      public Configuration 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 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.