1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.kuali.kfs.module.ar.fixture;
20
21 import org.kuali.kfs.module.cg.businessobject.AgencyAddress;
22
23
24
25
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 }