01: /*
02: * Copyright 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.module.labor.util.testobject;
17:
18: import java.util.ArrayList;
19: import java.util.List;
20: import java.util.Map;
21:
22: import org.kuali.kfs.KFSPropertyConstants;
23: import org.kuali.module.gl.bo.OriginEntryGroup;
24: import org.kuali.module.labor.util.ObjectUtil;
25:
26: public class OriginEntryGroupForTesting extends OriginEntryGroup {
27:
28: @Override
29: public boolean equals(Object otherOriginEntryGroup) {
30: return ObjectUtil.compareObject(this , otherOriginEntryGroup,
31: this .getKeyValueList());
32: }
33:
34: public Map getKeyValueMap() {
35: return ObjectUtil
36: .buildPropertyMap(this , this .getKeyValueList());
37: }
38:
39: public List<String> getKeyValueList() {
40: List<String> keyValueList = new ArrayList<String>();
41: keyValueList.add(KFSPropertyConstants.SOURCE_CODE);
42: keyValueList.add(KFSPropertyConstants.PROCESS);
43: keyValueList.add(KFSPropertyConstants.VALID);
44: keyValueList.add(KFSPropertyConstants.SCRUB);
45: return keyValueList;
46: }
47: }
|