001/* 002 * The Kuali Financial System, a comprehensive financial management system for higher education. 003 * 004 * Copyright 2005-2014 The Kuali Foundation 005 * 006 * This program is free software: you can redistribute it and/or modify 007 * it under the terms of the GNU Affero General Public License as 008 * published by the Free Software Foundation, either version 3 of the 009 * License, or (at your option) any later version. 010 * 011 * This program is distributed in the hope that it will be useful, 012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 014 * GNU Affero General Public License for more details. 015 * 016 * You should have received a copy of the GNU Affero General Public License 017 * along with this program. If not, see <http://www.gnu.org/licenses/>. 018 */ 019package org.kuali.kfs.module.purap.util; 020 021import java.sql.Date; 022 023import org.kuali.kfs.module.purap.document.PaymentRequestDocument; 024import org.kuali.kfs.module.purap.document.validation.impl.PaymentRequestPayDateNotPastValidation; 025import org.kuali.kfs.module.purap.fixture.PaymentRequestInvoiceTabFixture; 026 027public class TestPaymentRequestPayDateNotPastValidation extends PaymentRequestPayDateNotPastValidation { 028 029 private Date testDate; 030 031 @Override 032 protected PaymentRequestDocument retrievePaymentRequestDocumentFromDatabase(PaymentRequestDocument document) { 033 PaymentRequestDocument temp = new PaymentRequestDocument(); 034 PaymentRequestInvoiceTabFixture.WITH_POID_WITH_DATE_WITH_NUMBER_WITH_AMOUNT.populate(temp); 035 temp.setPaymentRequestPayDate(testDate); 036 return temp; 037 } 038 039 public Date getTestDate() { 040 return testDate; 041 } 042 043 public void setTestDate(Date testDate) { 044 this.testDate = testDate; 045 } 046 047}