public class MockProvider extends Object implements ServiceProvider
| Modifier and Type | Field and Description |
|---|---|
protected Map<Class<?>,Object> |
mocks |
protected ServiceProvider |
next |
| Constructor and Description |
|---|
MockProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(Class<?> klass,
Object mock) |
void |
clearBindings() |
<T> T |
getService(Class<T> serviceClass) |
void |
installSelf() |
void |
uninstallSelf() |
protected ServiceProvider next
public void clearBindings()
public void installSelf()
public void uninstallSelf()
public <T> T getService(Class<T> serviceClass)
getService in interface ServiceProviderCopyright © 2019 Nuxeo SA. All rights reserved.