Package arez.persist.runtime
Class ArezPersistTestUtil
java.lang.Object
arez.persist.runtime.ArezPersistTestUtil
Utility class for interacting with ArezPersist config settings in tests.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceInterface to intercept log messages emitted by ArezPersist runtime. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidSet the `arez.persist.check_api_invariants` setting to true.static voidSet the `arez.persist.enable_application_store` setting to false.static voidSet the `arez.persist.enable_application_store` setting to true.static voidSet the `arez.persist.check_api_invariants` setting to false.static voidresetConfig(boolean production) Reset the state of ArezPersist config to either production or development state.static voidReset the state of ArezPersist.static voidsetLogger(ArezPersistTestUtil.Logger logger) Specify logger to use to capture logging in tests
-
Method Details
-
resetConfig
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
Reset the state of ArezPersist. This occasionally needs to be invoked after changing configuration settings in tests. -
setLogger
Specify logger to use to capture logging in tests- Parameters:
logger- the logger.
-
enableApplicationStore
Set the `arez.persist.enable_application_store` setting to true. -
disableApplicationStore
Set the `arez.persist.enable_application_store` setting to false. -
checkApiInvariants
Set the `arez.persist.check_api_invariants` setting to true. -
noCheckApiInvariants
Set the `arez.persist.check_api_invariants` setting to false.
-