Search in sources :

Example 1 with MSKConceptCache

use of org.mskcc.oncotree.crosswalk.MSKConceptCache in project oncotree by cBioPortal.

the class OncotreeTestConfig method mskConceptCache.

@Bean
public MSKConceptCache mskConceptCache() {
    MSKConceptCache mskConceptCache = Mockito.mock(MSKConceptCache.class);
    MSKConcept mskConcept = new MSKConcept();
    mskConcept.setConceptIds(Arrays.asList("MSK00001", "MSK00002"));
    Mockito.when(mskConceptCache.get(any(String.class))).thenReturn(mskConcept);
    return mskConceptCache;
}
Also used : MSKConcept(org.mskcc.oncotree.crosswalk.MSKConcept) MSKConceptCache(org.mskcc.oncotree.crosswalk.MSKConceptCache) Bean(org.springframework.context.annotation.Bean)

Aggregations

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