Package org.opennms.core.test
Class IntervalTestCase
- java.lang.Object
-
- org.opennms.core.test.IntervalTestCase
-
public class IntervalTestCase extends java.lang.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 java.util.Date
date(java.lang.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
-
setUp
public void setUp() throws java.lang.Exception
- Throws:
java.lang.Exception
-
tearDown
public void tearDown() throws java.lang.Exception
- Throws:
java.lang.Exception
-
date
protected java.util.Date date(java.lang.String dateStr) throws java.lang.Exception
- Throws:
java.lang.Exception
-
interval
protected TimeInterval interval(int startMonth, int startDay, int startHour, int endMonth, int endDay, int endHour) throws java.lang.Exception
- Throws:
java.lang.Exception
-
jun
protected TimeInterval jun(int startDay, int startHour, int endDay, int endHour) throws java.lang.Exception
- Throws:
java.lang.Exception
-
jul
protected TimeInterval jul(int startDay, int startHour, int endDay, int endHour) throws java.lang.Exception
- Throws:
java.lang.Exception
-
aug
protected TimeInterval aug(int startDay, int startHour, int endDay, int endHour) throws java.lang.Exception
- Throws:
java.lang.Exception
-
sep
protected TimeInterval sep(int startDay, int startHour, int endDay, int endHour) throws java.lang.Exception
- Throws:
java.lang.Exception
-
oct
protected TimeInterval oct(int startDay, int startHour, int endDay, int endHour) throws java.lang.Exception
- Throws:
java.lang.Exception
-
nov
protected TimeInterval nov(int startDay, int startHour, int endDay, int endHour) throws java.lang.Exception
- Throws:
java.lang.Exception
-
dec
protected TimeInterval dec(int startDay, int startHour, int endDay, int endHour) throws java.lang.Exception
- Throws:
java.lang.Exception
-
jun
protected TimeInterval jun(int day, int beginHour, int endHour) throws java.lang.Exception
- Throws:
java.lang.Exception
-
jul
protected TimeInterval jul(int day, int beginHour, int endHour) throws java.lang.Exception
- Throws:
java.lang.Exception
-
aug
protected TimeInterval aug(int day, int beginHour, int endHour) throws java.lang.Exception
- Throws:
java.lang.Exception
-
sep
protected TimeInterval sep(int day, int beginHour, int endHour) throws java.lang.Exception
- Throws:
java.lang.Exception
-
oct
protected TimeInterval oct(int day, int beginHour, int endHour) throws java.lang.Exception
- Throws:
java.lang.Exception
-
nov
protected TimeInterval nov(int day, int beginHour, int endHour) throws java.lang.Exception
- Throws:
java.lang.Exception
-
dec
protected TimeInterval dec(int day, int beginHour, int endHour) throws java.lang.Exception
- Throws:
java.lang.Exception
-
aug
protected TimeInterval aug(int day) throws java.lang.Exception
- Throws:
java.lang.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)
-
-