Package org.nuxeo.runtime.mockito
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
-
-
Constructor Summary
Constructors Constructor Description MockProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bind(Class<?> klass, Object mock)
void
clearBindings()
<T> T
getService(Class<T> serviceClass)
Gets the service instance given its API class.void
installSelf()
void
uninstallSelf()
-
-
-
Field Detail
-
next
protected ServiceProvider next
-
-
Method Detail
-
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 interfaceServiceProvider
-
-