Search in sources :

Example 1 with CrosswalkRepository

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;
}
Also used : MSKConcept(org.mskcc.oncotree.crosswalk.MSKConcept) CrosswalkRepository(org.mskcc.oncotree.crosswalk.CrosswalkRepository) Bean(org.springframework.context.annotation.Bean)

Aggregations

CrosswalkRepository (org.mskcc.oncotree.crosswalk.CrosswalkRepository)1 MSKConcept (org.mskcc.oncotree.crosswalk.MSKConcept)1 Bean (org.springframework.context.annotation.Bean)1