Coverage Report - org.kuali.student.kim.permission.mock.MockHelper
 
Classes in this File Line Coverage Branch Coverage Complexity
MockHelper
0%
0/8
0%
0/2
2
 
 1  
 /*
 2  
  * To change this template, choose Tools | Templates
 3  
  * and open the template in the editor.
 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  
  * @author nwright
 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  
 }