Search in sources :

Example 6 with DataDictionaryService

use of org.kuali.kfs.datadictionary.legacy.DataDictionaryService in project cu-kfs by CU-CommunityApps.

the class RassValueConverterBaseTest method buildMockDataDictionaryService.

private DataDictionaryService buildMockDataDictionaryService(Integer maxSize) {
    DataDictionaryService service = Mockito.mock(DataDictionaryService.class);
    Mockito.when(service.getAttributeMaxLength(Mockito.eq(Agency.class), Mockito.anyString())).thenReturn(maxSize);
    return service;
}
Also used : Agency(org.kuali.kfs.module.cg.businessobject.Agency) DataDictionaryService(org.kuali.kfs.datadictionary.legacy.DataDictionaryService)

Example 7 with DataDictionaryService

use of org.kuali.kfs.datadictionary.legacy.DataDictionaryService in project cu-kfs by CU-CommunityApps.

the class CuBatchExtractServiceImplTest method buildMockDataDictionaryService.

private DataDictionaryService buildMockDataDictionaryService() {
    DataDictionaryService dataDictionaryService = Mockito.mock(DataDictionaryService.class);
    Mockito.when(dataDictionaryService.getDocumentClassByTypeName(Mockito.anyString())).then(this::findClassByType);
    return dataDictionaryService;
}
Also used : DataDictionaryService(org.kuali.kfs.datadictionary.legacy.DataDictionaryService)

Aggregations

DataDictionaryService (org.kuali.kfs.datadictionary.legacy.DataDictionaryService)7 Before (org.junit.Before)2 CuCheckingSavingsValuesFinder (edu.cornell.kfs.coa.businessobject.options.CuCheckingSavingsValuesFinder)1 TestPayeeAchIdTypeValuesFinder (edu.cornell.kfs.pdp.businessobject.options.TestPayeeAchIdTypeValuesFinder)1 LinkedHashMap (java.util.LinkedHashMap)1 DateTimeServiceImpl (org.kuali.kfs.core.impl.datetime.DateTimeServiceImpl)1 Field (org.kuali.kfs.kns.web.ui.Field)1 AttributeDefinition (org.kuali.kfs.krad.datadictionary.AttributeDefinition)1 BusinessObjectService (org.kuali.kfs.krad.service.BusinessObjectService)1 NoteService (org.kuali.kfs.krad.service.NoteService)1 Agency (org.kuali.kfs.module.cg.businessobject.Agency)1 AccountsPayableService (org.kuali.kfs.module.purap.document.service.AccountsPayableService)1 PurapService (org.kuali.kfs.module.purap.document.service.PurapService)1