use of org.kuali.rice.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.rice.core.impl.datetime.DateTimeServiceImpl in project cu-kfs by CU-CommunityApps.
the class CuCreditMemoServiceImplTest method setUp.
@Before
public void setUp() throws Exception {
accountsPayableService = EasyMock.createNiceMock(AccountsPayableService.class);
EasyMock.expect(accountsPayableService.getExpiredOrClosedAccountList(creditMemoDocument)).andReturn(new HashMap<>());
EasyMock.replay(accountsPayableService);
dataDictionaryService = EasyMock.createNiceMock(DataDictionaryService.class);
EasyMock.expect(dataDictionaryService.getAttributeMaxLength(DocumentHeader.class, KRADPropertyConstants.DOCUMENT_DESCRIPTION)).andReturn(200);
EasyMock.replay(dataDictionaryService);
dateTimeService = new DateTimeServiceImpl();
documentService = new MockDocumentServiceImpl();
noteService = EasyMock.createMock(NoteService.class);
purapService = EasyMock.createMock(PurapService.class);
vendorService = new MockVendorServiceImpl();
creditMemoServiceImpl = PowerMock.createPartialMock(CuCreditMemoServiceImplTest.TestCuCreditMemoServiceImpl.class, "reIndexDocument", "getCreditMemoDocumentById");
creditMemoServiceImpl.setDocumentService(documentService);
creditMemoServiceImpl.setNoteService(noteService);
creditMemoServiceImpl.setPurapService(purapService);
creditMemoServiceImpl.setAccountsPayableService(accountsPayableService);
creditMemoServiceImpl.setVendorService(vendorService);
creditMemoServiceImpl.setDataDictionaryService(dataDictionaryService);
creditMemoDocument = setupVendorCreditMemoDocument();
mo14Person = MockPersonUtil.createMockPerson(UserNameFixture.mo14);
mo14Session = MockPersonUtil.createMockUserSession(mo14Person);
GlobalVariables.setUserSession(mo14Session);
}
use of org.kuali.rice.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.rice.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");
ArrayList<String> methodNames = new ArrayList<>();
for (Method method : AdvanceDepositDocument.class.getMethods()) {
if (!Modifier.isFinal(method.getModifiers()) && !method.getName().startsWith("set") && !method.getName().startsWith("get")) {
methodNames.add(method.getName());
}
}
IMockBuilder<AdvanceDepositDocument> builder = EasyMock.createMockBuilder(AdvanceDepositDocument.class).addMockedMethods(methodNames.toArray(new String[0]));
advanceDepositDocument = builder.createNiceMock();
GlobalVariables.getMessageMap().clearErrorMessages();
}
use of org.kuali.rice.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);
}
Aggregations