View Javadoc
1   /**
2    * Copyright 2004-2014 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
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.kpme.core.earncode;
17  
18  import java.util.HashMap;
19  import java.util.Map;
20  
21  import org.kuali.kpme.core.api.earncode.EarnCode;
22  
23  public class EarnCodeBoTest {
24  
25  	 private static Map<String, EarnCode> testEarnCodes;
26  	 static {
27  		 testEarnCodes = new HashMap<String, EarnCode>();
28  		 EarnCode.Builder earncode = EarnCode.Builder.create("TST-EarnCode");
29  		 earncode.setHrEarnCodeId("KPME-TEST-0001");
30  		 earncode.setEarnCode("TST-EarnCode");
31  		 earncode.setDescription("This is the description for earncode");
32  		 earncode.setActive(true);
33  		 earncode.setId(earncode.getHrEarnCodeId());
34  		 earncode.setVersionNumber(1L);
35  		 earncode.setUserPrincipalId("admin");
36           earncode.setObjectId("d9e94e3a-cbb7-11e3-9cd3-51a754ad6a0a");
37           testEarnCodes.put(earncode.getEarnCode(), earncode.build());
38  	 }
39  	 
40  	 public static EarnCode getTestEarnCode(String EarnCode) {
41  	        return testEarnCodes.get(EarnCode);
42  	 }
43  }