1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
package org.kuali.student.kim.permission.mock; |
6 | |
|
7 | |
import java.util.LinkedHashMap; |
8 | |
import java.util.Map; |
9 | |
import org.kuali.rice.kim.api.group.Group; |
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | 0 | public class MockHelper { |
16 | |
|
17 | |
public Map<String,String> copy(Map<String,String> info) { |
18 | 0 | if (info == null) { |
19 | 0 | return null; |
20 | |
} |
21 | 0 | Map<String,String> copy = new LinkedHashMap<String,String>(info); |
22 | 0 | return copy; |
23 | |
} |
24 | |
|
25 | |
public Group copy(Group info) { |
26 | 0 | Group.Builder copy = Group.Builder.create(info); |
27 | 0 | copy.setId(null); |
28 | 0 | return copy.build(); |
29 | |
} |
30 | |
} |