use of org.mskcc.oncotree.crosswalk.CrosswalkRepository in project oncotree by cBioPortal.
the class OncotreeTestConfig method crosswalkRepository.
@Bean
public CrosswalkRepository crosswalkRepository() {
CrosswalkRepository repository = Mockito.mock(CrosswalkRepository.class);
MSKConcept mskConcept = new MSKConcept();
mskConcept.setConceptIds(Arrays.asList("MSK00001", "MSK00002"));
Mockito.when(repository.getByOncotreeCode(any(String.class))).thenReturn(mskConcept);
return repository;
}
Aggregations