Package com.avoka.tm.test
Class MockRegistry
java.lang.Object
com.avoka.tm.test.MockRegistry
Provides thread local registry for mock HTTP request/response pairs and service/result object pairs.
These are used in Fluent tests to mock up calls to external and internal services.
- Since:
- 5.1.7
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
clear()
Clear registries.Get the mock object registry.
-
Method Details
-
getRegistry
Get the mock object registry.- Returns:
- the service registry
-
clear
public static void clear()Clear registries. This is important to avoid polluting non-test code paths.
-