1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 }