01: /*
02: * Copyright 2006 The Kuali Foundation.
03: *
04: * Licensed under the Educational Community License, Version 1.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.opensource.org/licenses/ecl1.php
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: package org.kuali.module.gl;
17:
18: import java.util.Date;
19: import java.util.List;
20: import java.util.Map;
21:
22: import org.kuali.module.gl.batch.sufficientFunds.SufficientFundsReport;
23:
24: /**
25: * A mock implementation of SufficientFundsReport that doesn't generate a report
26: */
27: public class TestSufficientFundsReport implements SufficientFundsReport {
28: public Map reportErrors;
29: public List reportSummary;
30: public Date runDate;
31: public int mode;
32:
33: /**
34: * This is a mock...so it doesn't generate a report at all, but sets the parameter values to
35: * be checked later.
36: * @see org.kuali.module.gl.batch.sufficientFunds.SufficientFundsReport#generateReport(java.util.Map, java.util.List, java.util.Date, int)
37: */
38: public void generateReport(Map reportErrors, List reportSummary,
39: Date runDate, int mode) {
40: this.reportErrors = reportErrors;
41: this.reportSummary = reportSummary;
42: this.runDate = runDate;
43: this.mode = mode;
44: }
45: }
|