Clover Coverage Report - KS Common Test 1.2-M1-SNAPSHOT
Coverage timestamp: Fri Mar 4 2011 04:47:16 EST
../../../../../../img/srcFileCovDistChart0.png 76% of files have more coverage
5   29   2   2.5
0   21   0.4   2
2     1  
1    
 
  PersistObjectsBean       Line # 12 5 0% 2 7 0% 0.0
 
No Tests
 
1    package org.kuali.student.common.test.spring;
2   
3    import java.util.List;
4    import java.util.Map;
5    import java.util.Map.Entry;
6   
7    import javax.persistence.EntityManager;
8   
9    import org.springframework.transaction.annotation.Transactional;
10   
11    @Transactional
 
12    public class PersistObjectsBean {
13   
14    private Map<EntityManager, List<Object>> objectMap;
15   
 
16  0 toggle public void loadData() {
17  0 for (Entry<EntityManager, List<Object>> entry : objectMap.entrySet()) {
18  0 EntityManager em = entry.getKey();
19  0 for (Object o : entry.getValue()) {
20  0 em.persist(o);
21    }
22    }
23    }
24   
 
25  0 toggle public void setObjectMap(Map<EntityManager, List<Object>> objectMap) {
26  0 this.objectMap = objectMap;
27    }
28   
29    }