Package org.opennms.core.test
Class IntervalTestCase
- java.lang.Object
-
- org.opennms.core.test.IntervalTestCase
-
public class IntervalTestCase extends Object
-
-
Constructor Summary
Constructors Constructor Description IntervalTestCase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
assertInterval(TimeInterval expected, TimeInterval actual)
protected <T extends TimeInterval>
voidassertTimeIntervalSequence(T[] intervals, AbstractTimeIntervalSequence<T> seq)
protected TimeInterval
aug(int day)
protected TimeInterval
aug(int day, int beginHour, int endHour)
protected TimeInterval
aug(int startDay, int startHour, int endDay, int endHour)
protected Date
date(String dateStr)
protected TimeInterval
dec(int day, int beginHour, int endHour)
protected TimeInterval
dec(int startDay, int startHour, int endDay, int endHour)
protected TimeInterval
interval(int startMonth, int startDay, int startHour, int endMonth, int endDay, int endHour)
protected TimeInterval
jul(int day, int beginHour, int endHour)
protected TimeInterval
jul(int startDay, int startHour, int endDay, int endHour)
protected TimeInterval
jun(int day, int beginHour, int endHour)
protected TimeInterval
jun(int startDay, int startHour, int endDay, int endHour)
protected TimeInterval
nov(int day, int beginHour, int endHour)
protected TimeInterval
nov(int startDay, int startHour, int endDay, int endHour)
protected TimeInterval
oct(int day, int beginHour, int endHour)
protected TimeInterval
oct(int startDay, int startHour, int endDay, int endHour)
protected OwnedInterval
owned(Owner owner, TimeInterval interval)
protected OwnedInterval
owned(TimeInterval interval)
protected OwnedInterval
ownedOne(TimeInterval interval)
protected OwnedInterval
ownedOneAndTwo(TimeInterval interval)
protected OwnedInterval
ownedTwo(TimeInterval interval)
protected TimeInterval
sep(int day, int beginHour, int endHour)
protected TimeInterval
sep(int startDay, int startHour, int endDay, int endHour)
void
setUp()
void
tearDown()
-
-
-
Method Detail
-
interval
protected TimeInterval interval(int startMonth, int startDay, int startHour, int endMonth, int endDay, int endHour) throws Exception
- Throws:
Exception
-
jun
protected TimeInterval jun(int startDay, int startHour, int endDay, int endHour) throws Exception
- Throws:
Exception
-
jul
protected TimeInterval jul(int startDay, int startHour, int endDay, int endHour) throws Exception
- Throws:
Exception
-
aug
protected TimeInterval aug(int startDay, int startHour, int endDay, int endHour) throws Exception
- Throws:
Exception
-
sep
protected TimeInterval sep(int startDay, int startHour, int endDay, int endHour) throws Exception
- Throws:
Exception
-
oct
protected TimeInterval oct(int startDay, int startHour, int endDay, int endHour) throws Exception
- Throws:
Exception
-
nov
protected TimeInterval nov(int startDay, int startHour, int endDay, int endHour) throws Exception
- Throws:
Exception
-
dec
protected TimeInterval dec(int startDay, int startHour, int endDay, int endHour) throws Exception
- Throws:
Exception
-
jun
protected TimeInterval jun(int day, int beginHour, int endHour) throws Exception
- Throws:
Exception
-
jul
protected TimeInterval jul(int day, int beginHour, int endHour) throws Exception
- Throws:
Exception
-
aug
protected TimeInterval aug(int day, int beginHour, int endHour) throws Exception
- Throws:
Exception
-
sep
protected TimeInterval sep(int day, int beginHour, int endHour) throws Exception
- Throws:
Exception
-
oct
protected TimeInterval oct(int day, int beginHour, int endHour) throws Exception
- Throws:
Exception
-
nov
protected TimeInterval nov(int day, int beginHour, int endHour) throws Exception
- Throws:
Exception
-
dec
protected TimeInterval dec(int day, int beginHour, int endHour) throws Exception
- Throws:
Exception
-
aug
protected TimeInterval aug(int day) throws Exception
- Throws:
Exception
-
assertTimeIntervalSequence
protected <T extends TimeInterval> void assertTimeIntervalSequence(T[] intervals, AbstractTimeIntervalSequence<T> seq)
-
assertInterval
protected void assertInterval(TimeInterval expected, TimeInterval actual)
-
owned
protected OwnedInterval owned(Owner owner, TimeInterval interval)
-
owned
protected OwnedInterval owned(TimeInterval interval)
-
ownedOne
protected OwnedInterval ownedOne(TimeInterval interval)
-
ownedTwo
protected OwnedInterval ownedTwo(TimeInterval interval)
-
ownedOneAndTwo
protected OwnedInterval ownedOneAndTwo(TimeInterval interval)
-
-