Class MockProvider

java.lang.Object
org.nuxeo.runtime.mockito.MockProvider
All Implemented Interfaces:
ServiceProvider

public class MockProvider extends Object implements ServiceProvider
Since:
5.7.8
  • Field Details

  • Constructor Details

    • MockProvider

      public MockProvider()
  • Method Details

    • bind

      public void bind(Class<?> klass, Object mock)
    • clearBindings

      public void clearBindings()
    • installSelf

      public void installSelf()
    • uninstallSelf

      public void uninstallSelf()
    • getService

      public <T> T getService(Class<T> serviceClass)
      Description copied from interface: ServiceProvider
      Gets the service instance given its API class.
      Specified by:
      getService in interface ServiceProvider