Coverage Report - org.kuali.rice.krms.framework.engine.BasicAgendaTree
 
Classes in this File Line Coverage Branch Coverage Complexity
BasicAgendaTree
54%
6/11
50%
2/4
2
 
 1  
 package org.kuali.rice.krms.framework.engine;
 2  
 
 3  
 import java.util.Arrays;
 4  
 import java.util.List;
 5  
 
 6  
 import org.kuali.rice.krms.api.engine.ExecutionEnvironment;
 7  
 
 8  
 public final class BasicAgendaTree implements AgendaTree {
 9  
         
 10  
         private final List<AgendaTreeEntry> entries;
 11  
         
 12  33
         public BasicAgendaTree(AgendaTreeEntry... entries) {
 13  33
                 this.entries = Arrays.asList(entries);
 14  33
         }
 15  
         
 16  0
         public BasicAgendaTree(List<AgendaTreeEntry> entries) {
 17  0
                 if (entries == null) {
 18  0
                         throw new IllegalArgumentException("entries list was null");
 19  
                 }
 20  0
                 this.entries = entries;                
 21  0
         }
 22  
         
 23  
         public void execute(ExecutionEnvironment environment) {
 24  31
                 for (AgendaTreeEntry entry : entries) {
 25  35
                         entry.execute(environment);
 26  
                 }
 27  31
         }
 28  
         
 29  
 }