Clover Coverage Report - Kuali Student 1.2-M2-SNAPSHOT (Aggregated)
Coverage timestamp: Fri Apr 22 2011 04:03:20 EST
../../../../../../../../../img/srcFileCovDistChart0.png 53% of files have more coverage
6   23   4   3
4   17   0.67   2
2     2  
1    
 
  CourseStateUtil       Line # 9 6 0% 4 12 0% 0.0
 
No Tests
 
1    package org.kuali.student.lum.lu.ui.course.server.gwt;
2   
3    import java.util.Iterator;
4    import java.util.List;
5   
6    import org.kuali.student.core.statement.dto.ReqComponentInfo;
7    import org.kuali.student.core.statement.dto.StatementTreeViewInfo;
8   
 
9    public class CourseStateUtil {
10   
 
11  0 toggle private CourseStateUtil() {
12    }
13   
14    /* Recursively set state for StatementTreeViewInfo */
 
15  0 toggle public static void updateStatementTreeViewInfoState(String courseState, StatementTreeViewInfo statementTreeViewInfo) throws Exception {
16  0 statementTreeViewInfo.setState(courseState);
17  0 List<ReqComponentInfo> reqComponents = statementTreeViewInfo.getReqComponents();
18  0 for(Iterator<ReqComponentInfo> it = reqComponents.iterator(); it.hasNext();)
19  0 it.next().setState(courseState);
20  0 for(Iterator<StatementTreeViewInfo> itr = statementTreeViewInfo.getStatements().iterator(); itr.hasNext();)
21  0 updateStatementTreeViewInfoState(courseState, (StatementTreeViewInfo)itr.next());
22    }
23    }