public class MockProvider extends Object implements ServiceProvider
Modifier and Type | Field and Description |
---|---|
static MockProvider |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
void |
bind(Class<?> klass,
Object mock) |
<T> T |
getService(Class<T> serviceClass)
Gets the service instance given its API class.
|
public static MockProvider INSTANCE
public <T> T getService(Class<T> serviceClass)
ServiceProvider
getService
in interface ServiceProvider
Copyright © 2013 Nuxeo SA. All Rights Reserved.