Class MockRegistry


  • public class MockRegistry
    extends Object
    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 Detail

      • getRegistry

        public static Map<Object,​Object> 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.