use of com.stanfy.enroscar.net.test.cache.DummyResponseCache in project enroscar by stanfy.
the class RemoteServerApiConfigurationTest method configureBean.
@Before
public void configureBean() {
BeansManager manager = BeansManager.get(Robolectric.application);
manager.edit().put("defaultCacheBeanName", new DummyResponseCache()).put("defaultContentHandlerName", new StringContentHandler(Robolectric.application)).put(RemoteServerApiConfiguration.class).commit();
RemoteServerApiConfiguration config = manager.getContainer().getBean(RemoteServerApiConfiguration.class);
config.setDefaultCacheBeanName("defaultCacheBeanName");
config.setDefaultContentHandlerName("defaultContentHandlerName");
}
Aggregations