Search in sources :

Example 1 with DateTimeServiceImpl

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();
}
Also used : DateTimeServiceImpl(org.kuali.rice.core.impl.datetime.DateTimeServiceImpl) ConcurStandardAccountingExtractBatchReportData(edu.cornell.kfs.concur.batch.report.ConcurStandardAccountingExtractBatchReportData) Before(org.junit.Before)

Example 2 with DateTimeServiceImpl

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);
}
Also used : DateTimeServiceImpl(org.kuali.rice.core.impl.datetime.DateTimeServiceImpl) PurapService(org.kuali.kfs.module.purap.document.service.PurapService) NoteService(org.kuali.kfs.krad.service.NoteService) AccountsPayableService(org.kuali.kfs.module.purap.document.service.AccountsPayableService) DataDictionaryService(org.kuali.kfs.kns.service.DataDictionaryService) Before(org.junit.Before)

Example 3 with DateTimeServiceImpl

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());
}
Also used : DateTimeServiceImpl(org.kuali.rice.core.impl.datetime.DateTimeServiceImpl)

Example 4 with DateTimeServiceImpl

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();
}
Also used : DateTimeServiceImpl(org.kuali.rice.core.impl.datetime.DateTimeServiceImpl) MockParameterServiceImpl(edu.cornell.kfs.sys.service.mock.MockParameterServiceImpl) AdvanceDepositDocument(org.kuali.kfs.fp.document.AdvanceDepositDocument) ArrayList(java.util.ArrayList) Method(java.lang.reflect.Method) IncomingWireAchMapping(edu.cornell.kfs.fp.businessobject.IncomingWireAchMapping) Before(org.junit.Before)

Example 5 with DateTimeServiceImpl

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);
}
Also used : DateTimeServiceImpl(org.kuali.rice.core.impl.datetime.DateTimeServiceImpl) Before(org.junit.Before)

Aggregations

DateTimeServiceImpl (org.kuali.rice.core.impl.datetime.DateTimeServiceImpl)5 Before (org.junit.Before)4 ConcurStandardAccountingExtractBatchReportData (edu.cornell.kfs.concur.batch.report.ConcurStandardAccountingExtractBatchReportData)1 IncomingWireAchMapping (edu.cornell.kfs.fp.businessobject.IncomingWireAchMapping)1 MockParameterServiceImpl (edu.cornell.kfs.sys.service.mock.MockParameterServiceImpl)1 Method (java.lang.reflect.Method)1 ArrayList (java.util.ArrayList)1 AdvanceDepositDocument (org.kuali.kfs.fp.document.AdvanceDepositDocument)1 DataDictionaryService (org.kuali.kfs.kns.service.DataDictionaryService)1 NoteService (org.kuali.kfs.krad.service.NoteService)1 AccountsPayableService (org.kuali.kfs.module.purap.document.service.AccountsPayableService)1 PurapService (org.kuali.kfs.module.purap.document.service.PurapService)1