Class ArezPersistTestUtil

java.lang.Object
arez.persist.runtime.ArezPersistTestUtil

@GwtIncompatible public final class ArezPersistTestUtil extends Object
Utility class for interacting with ArezPersist config settings in tests.
  • Method Details

    • resetConfig

      public static void resetConfig(boolean production)
      Reset the state of ArezPersist config to either production or development state.
      Parameters:
      production - true to set it to production environment configuration, false to set it to development environment config.
    • resetState

      public static void resetState()
      Reset the state of ArezPersist. This occasionally needs to be invoked after changing configuration settings in tests.
    • setLogger

      public static void setLogger(@Nullable ArezPersistTestUtil.Logger logger)
      Specify logger to use to capture logging in tests
      Parameters:
      logger - the logger.
    • enableApplicationStore

      public static void enableApplicationStore()
      Set the `arez.persist.enable_application_store` setting to true.
    • disableApplicationStore

      public static void disableApplicationStore()
      Set the `arez.persist.enable_application_store` setting to false.
    • checkApiInvariants

      public static void checkApiInvariants()
      Set the `arez.persist.check_api_invariants` setting to true.
    • noCheckApiInvariants

      public static void noCheckApiInvariants()
      Set the `arez.persist.check_api_invariants` setting to false.