Search in sources :

Example 1 with MockInterval

use of org.opennms.netmgt.poller.mock.MockInterval in project opennms by OpenNMS.

the class ScheduleTest method setUp.

/*
     * @see TestCase#setUp()
     */
@Override
protected void setUp() throws Exception {
    super.setUp();
    MockLogAppender.setupLogging();
    m_schedulable = new MockSchedulable();
    m_scheduler = new MockScheduler();
    m_interval = new MockInterval(m_scheduler, 1000L);
    m_sched = new Schedule(m_schedulable, m_interval, m_scheduler);
}
Also used : MockScheduler(org.opennms.netmgt.poller.mock.MockScheduler) MockInterval(org.opennms.netmgt.poller.mock.MockInterval)

Aggregations

MockInterval (org.opennms.netmgt.poller.mock.MockInterval)1 MockScheduler (org.opennms.netmgt.poller.mock.MockScheduler)1