Clover Coverage Report - KS Common 1.2-SNAPSHOT (Aggregated)
Coverage timestamp: Thu Mar 3 2011 04:36:44 EST
../../../../../../img/srcFileCovDistChart10.png 0% of files have more coverage
5   29   2   2.5
0   21   0.4   2
2     1  
1    
 
  PersistObjectsBean       Line # 12 5 0% 2 0 100% 1.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  1 toggle public void loadData() {
17  1 for (Entry<EntityManager, List<Object>> entry : objectMap.entrySet()) {
18  2 EntityManager em = entry.getKey();
19  2 for (Object o : entry.getValue()) {
20  6 em.persist(o);
21    }
22    }
23    }
24   
 
25  1 toggle public void setObjectMap(Map<EntityManager, List<Object>> objectMap) {
26  1 this.objectMap = objectMap;
27    }
28   
29    }