01: /*
02: * Copyright 2006-2007 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.test.fixtures;
17:
18: import org.kuali.module.financial.bo.OffsetAccount;
19:
20: public enum OffsetAccountFixture {
21: OFFSET_ACCOUNT1("BL", "2231401", "8000", "UA", "1912201"), ;
22:
23: public final String accountNumber;
24: public final String chartOfAccountsCode;
25: public final String financialOffsetObjectCode;
26: public final String financialOffsetChartOfAccountCode;
27: public final String financialOffsetAccountNumber;
28:
29: private OffsetAccountFixture(String chartOfAccountsCode,
30: String accountNumber, String financialOffsetObjectCode,
31: String financialOffsetChartOfAccountCode,
32: String financialOffsetAccountNumber) {
33: this .accountNumber = accountNumber;
34: this .chartOfAccountsCode = chartOfAccountsCode;
35: this .financialOffsetObjectCode = financialOffsetObjectCode;
36: this .financialOffsetChartOfAccountCode = financialOffsetChartOfAccountCode;
37: this .financialOffsetAccountNumber = financialOffsetAccountNumber;
38: }
39:
40: public OffsetAccount createOffsetAccount() {
41: OffsetAccount account = new OffsetAccount();
42: account.setAccountNumber(this.accountNumber);
43: account.setChartOfAccountsCode(this.chartOfAccountsCode);
44: account
45: .setFinancialOffsetObjectCode(this.financialOffsetObjectCode);
46: account
47: .setFinancialOffsetChartOfAccountCode(this.financialOffsetChartOfAccountCode);
48: account
49: .setFinancialOffsetAccountNumber(this.financialOffsetAccountNumber);
50:
51: return account;
52: }
53: }
|