Clover Coverage Report - Kuali Student 1.1.1-SNAPSHOT (Aggregated)
Coverage timestamp: Wed Apr 20 2011 04:04:00 EST
../../../../../../img/srcFileCovDistChart0.png 48% of files have more coverage
5   20   2   5
2   15   0.4   1
1     2  
1    
 
  InactivatableFromToHelper       Line # 5 5 0% 2 8 0% 0.0
 
No Tests
 
1    package org.kuali.student.core.bo.util;
2   
3    import org.kuali.rice.kns.bo.InactivateableFromTo;
4   
 
5    public class InactivatableFromToHelper {
6   
 
7  0 toggle public static boolean isActive(InactivateableFromTo bo) {
8  0 long asOfDate;
9   
10  0 if (bo.getActiveAsOfDate() != null) {
11  0 asOfDate = bo.getActiveAsOfDate().getTime();
12    }
13    else {
14  0 asOfDate = System.currentTimeMillis();
15    }
16   
17  0 return (bo.getActiveFromDate() == null || asOfDate >= bo.getActiveFromDate().getTime())
18    && (bo.getActiveToDate() == null || asOfDate < bo.getActiveToDate().getTime());
19    }
20    }