Package dev.enola.common.context
Class TestContext
java.lang.Object
dev.enola.common.context.TestContext
Utility to detect if it is running under a test, for example to disable some production features.
Tests should use TestContextRule.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanReturns true if running under a test, and false if not.
-
Field Details
-
UNDER_TEST
Deprecated.
-
-
Method Details
-
isUnderTest
Returns true if running under a test, and false if not.
-