View Javadoc
1   /*
2    * The Kuali Financial System, a comprehensive financial management system for higher education.
3    * 
4    * Copyright 2005-2014 The Kuali Foundation
5    * 
6    * This program is free software: you can redistribute it and/or modify
7    * it under the terms of the GNU Affero General Public License as
8    * published by the Free Software Foundation, either version 3 of the
9    * License, or (at your option) any later version.
10   * 
11   * This program is distributed in the hope that it will be useful,
12   * but WITHOUT ANY WARRANTY; without even the implied warranty of
13   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14   * GNU Affero General Public License for more details.
15   * 
16   * You should have received a copy of the GNU Affero General Public License
17   * along with this program.  If not, see <http://www.gnu.org/licenses/>.
18   */
19  package org.kuali.kfs.module.ar.fixture;
20  
21  import org.kuali.kfs.module.cg.businessobject.AgencyAddress;
22  
23  
24  /**
25   * Fixture class for CG Agency Address
26   */
27  public enum ARAgencyAddressFixture {
28  
29  
30      CG_AGENCY_ADD1("11505", new Long(26), "P"), CG_AGENCY_ADD2("11505", new Long(26), "A");
31  
32      private String agencyNumber;
33      private Long agencyAddressIdentifier;
34      private String customerAddressTypeCode;
35  
36      private ARAgencyAddressFixture(String agencyNumber, Long agencyAddressIdentifier, String customerAddressTypeCode) {
37  
38          this.agencyNumber = agencyNumber;
39          this.agencyAddressIdentifier = agencyAddressIdentifier;
40          this.customerAddressTypeCode = customerAddressTypeCode;
41  
42      }
43  
44      public AgencyAddress createAgencyAddress() {
45          AgencyAddress agencyAddress = new AgencyAddress();
46          agencyAddress.setAgencyNumber(this.agencyNumber);
47          agencyAddress.setAgencyAddressIdentifier(this.agencyAddressIdentifier);
48          agencyAddress.setCustomerAddressTypeCode(this.customerAddressTypeCode);
49          return agencyAddress;
50      }
51  }