use of com.thoughtworks.go.server.service.materials.PluggableSCMMaterialPoller in project gocd by gocd.
the class PluggableSCMMaterialUpdaterIntegrationTest method mockSCMExtensionInPoller.
private void mockSCMExtensionInPoller() {
Map<Class, MaterialPoller> materialPollerMap = (Map<Class, MaterialPoller>) ReflectionUtil.getField(materialService, "materialPollerMap");
materialPollerMap.put(PluggableSCMMaterial.class, new PluggableSCMMaterialPoller(materialRepository, scmExtension, transactionTemplate));
ReflectionUtil.setField(materialService, "materialPollerMap", materialPollerMap);
}
Aggregations