Clover Coverage Report - Kuali Student 1.1 (Aggregated)
Coverage timestamp: Sun Mar 6 2011 20:32:39 EST
../../../../../../img/srcFileCovDistChart0.png 53% of files have more coverage
5   27   2   5
2   19   0.4   1
1     2  
1    
 
  EnumerationMaintainableImpl       Line # 10 5 0% 2 8 0% 0.0
 
No Tests
 
1    package org.kuali.student.core.enumerationmanagement.document;
2   
3    import java.util.Map;
4   
5    import org.kuali.rice.kns.document.MaintenanceDocument;
6    import org.kuali.rice.kns.maintenance.KualiMaintainableImpl;
7    import org.kuali.student.core.enumerationmanagement.bo.EnumeratedValue;
8    import org.kuali.student.core.enumerationmanagement.bo.Enumeration;
9   
 
10    public class EnumerationMaintainableImpl extends KualiMaintainableImpl {
11   
12    private static final long serialVersionUID = 7426377658194232269L;
13   
 
14  0 toggle @Override
15    public void processAfterCopy(MaintenanceDocument document, Map<String, String[]> parameters) {
16  0 super.processAfterCopy(document, parameters);
17   
18  0 Enumeration enumeration = (Enumeration) document.getNewMaintainableObject().getBusinessObject();
19   
20  0 if(enumeration.getEnumeratedValueList() != null) {
21  0 for(EnumeratedValue value : enumeration.getEnumeratedValueList()) {
22  0 value.setId(null);
23    }
24    }
25    }
26   
27    }