use of org.kuali.kfs.core.impl.datetime.DateTimeServiceImpl in project cu-kfs by CU-CommunityApps.
the class ConcurStandardAccountExtractPdpEntryServiceImplTest method setUp.
@Before
public void setUp() throws Exception {
pdpEntryService = new ConcurStandardAccountExtractPdpEntryServiceImpl();
pdpEntryService.setPayeeNameFieldSize(new Integer(40));
pdpEntryService.setDateTimeService(new DateTimeServiceImpl());
reportData = new ConcurStandardAccountingExtractBatchReportData();
}
use of org.kuali.kfs.core.impl.datetime.DateTimeServiceImpl in project cu-kfs by CU-CommunityApps.
the class LaborLedgerEnterpriseFeedServiceImplTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
ldService = new LaborLedgerEnterpriseFeedServiceImpl();
ldService.setDateTimeService(new DateTimeServiceImpl());
ldService.setAccountingPeriodService(new MockAccountingPeriodService());
}
use of org.kuali.kfs.core.impl.datetime.DateTimeServiceImpl in project cu-kfs by CU-CommunityApps.
the class CuCreditMemoServiceImplTest method setUp.
@Before
public void setUp() throws Exception {
accountsPayableService = Mockito.mock(AccountsPayableService.class);
Mockito.when(accountsPayableService.getExpiredOrClosedAccountList(Mockito.any())).thenReturn(new HashMap<>());
dataDictionaryService = Mockito.mock(DataDictionaryService.class);
Mockito.when(dataDictionaryService.getAttributeMaxLength(DocumentHeader.class, KRADPropertyConstants.DOCUMENT_DESCRIPTION)).thenReturn(200);
dateTimeService = new DateTimeServiceImpl();
documentService = buildMockDocumentService();
noteService = Mockito.mock(NoteService.class);
purapService = Mockito.mock(PurapService.class);
vendorService = new MockVendorServiceImpl();
creditMemoServiceImpl = PowerMockito.spy(new TestCuCreditMemoServiceImpl());
PowerMockito.doNothing().when(creditMemoServiceImpl, "reIndexDocument", Mockito.any());
creditMemoServiceImpl.setDocumentService(documentService);
creditMemoServiceImpl.setNoteService(noteService);
creditMemoServiceImpl.setPurapService(purapService);
creditMemoServiceImpl.setAccountsPayableService(accountsPayableService);
creditMemoServiceImpl.setVendorService(vendorService);
creditMemoServiceImpl.setDataDictionaryService(dataDictionaryService);
creditMemoDocument = setupVendorCreditMemoDocument();
mls398Person = MockPersonUtil.createMockPerson(UserNameFixture.mls398);
mls398Session = MockPersonUtil.createMockUserSession(mls398Person);
GlobalVariables.setUserSession(mls398Session);
}
use of org.kuali.kfs.core.impl.datetime.DateTimeServiceImpl in project cu-kfs by CU-CommunityApps.
the class ConcurStandardAccountingExtractCollectorBatchBuilderTest method setUp.
@Before
public void setUp() throws Exception {
concurRequestedCashAdvanceService = buildMockRequestedCashAdvanceService();
concurStandardAccountingExtractCashAdvanceService = new ConcurStandardAccountingExtractCashAdvanceServiceImpl();
configurationService = buildMockConfigurationService();
concurBatchUtilityService = new ConcurBatchUtilityServiceImpl();
optionsService = buildMockOptionsService();
universityDateService = buildMockUniversityDateService();
dateTimeService = new DateTimeServiceImpl();
concurSAEValidationService = buildMockConcurSAEValidationService();
builder = new TestConcurStandardAccountingExtractCollectorBatchBuilder(concurRequestedCashAdvanceService, concurStandardAccountingExtractCashAdvanceService, configurationService, concurBatchUtilityService, optionsService, universityDateService, dateTimeService, concurSAEValidationService, this::getParameterValue);
}
use of org.kuali.kfs.core.impl.datetime.DateTimeServiceImpl in project cu-kfs by CU-CommunityApps.
the class AdvanceDepositServiceImplTest method setUp.
@Before
public void setUp() {
advanceDepositService = new TestableAdvanceDepositServiceImpl();
advanceDepositService.setBusinessObjectService(new MockBusinessObjectService());
advanceDepositService.setDateTimeService(new DateTimeServiceImpl());
advanceDepositService.setParameterService(new MockParameterServiceImpl());
mapping = new IncomingWireAchMapping();
mapping.setShortDescription("ARMY");
advanceDepositDocument = mock(AdvanceDepositDocument.class, CALLS_REAL_METHODS);
GlobalVariables.getMessageMap().clearErrorMessages();
}
Aggregations