org.opennms.netmgt.poller
Class PollerTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.opennms.netmgt.poller.PollerTest
- All Implemented Interfaces:
- junit.framework.Test
- public class PollerTest
- extends junit.framework.TestCase
Fields inherited from class junit.framework.TestCase |
|
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
m_poller
private Poller m_poller
m_outageMgr
private OutageManager m_outageMgr
m_network
private MockNetwork m_network
m_db
private MockDatabase m_db
m_pollerConfig
private MockPollerConfig m_pollerConfig
m_eventMgr
private MockEventIpcManager m_eventMgr
m_daemonsStarted
private boolean m_daemonsStarted
m_anticipator
private EventAnticipator m_anticipator
m_outageAnticipator
private OutageAnticipator m_outageAnticipator
PollerTest
public PollerTest()
setUp
public void setUp()
tearDown
public void tearDown()
testBug709
public void testBug709()
resetAnticipated
private void resetAnticipated()
testCritSvcStatusPropagation
public void testCritSvcStatusPropagation()
testInterfaceWithNoCriticalService
public void testInterfaceWithNoCriticalService()
testDontPollDuringScheduledOutages
public void testDontPollDuringScheduledOutages()
testElementDeleted
private void testElementDeleted(MockElement element,
Event deleteEvent)
testServiceDeleted
public void testServiceDeleted()
testInterfaceDeleted
public void testInterfaceDeleted()
testNodeDeleted
public void testNodeDeleted()
testOutagesClosedOnDelete
public void testOutagesClosedOnDelete(MockElement element)
testServiceOutagesClosedOnDelete
public void testServiceOutagesClosedOnDelete()
testInterfaceOutagesClosedOnDelete
public void testInterfaceOutagesClosedOnDelete()
testNodeOutagesClosedOnDelete
public void testNodeOutagesClosedOnDelete()
testInterfaceReparented
public void testInterfaceReparented()
testNodeOutageProcessingDisabled
public void testNodeOutageProcessingDisabled()
throws java.lang.Exception
- Throws:
java.lang.Exception
testNodeOutageProcessingEnabled
public void testNodeOutageProcessingEnabled()
throws java.lang.Exception
- Throws:
java.lang.Exception
testNodeLostRegainedService
public void testNodeLostRegainedService()
throws java.lang.Exception
- Throws:
java.lang.Exception
testInterfaceDownUp
public void testInterfaceDownUp()
testNodeDownUp
public void testNodeDownUp()
testElementDownUp
private void testElementDownUp(MockElement element)
testPolling
public void testPolling()
throws java.lang.Exception
- Throws:
java.lang.Exception
testUnmangedWithOpenOutageAtStartup
public void testUnmangedWithOpenOutageAtStartup()
testReparentCausesStatusChange
public void testReparentCausesStatusChange()
testSendNodeGainedService
public void testSendNodeGainedService()
testSendNodeGainedServiceNodeOutages
public void testSendNodeGainedServiceNodeOutages()
testSendNodeGainedService
public void testSendNodeGainedService(boolean nodeOutageProcessing)
testSuspendPollingResumeService
public void testSuspendPollingResumeService()
startDaemons
private void startDaemons()
stopDaemons
private void stopDaemons()
sleep
private void sleep(long millis)
verifyAnticipated
private void verifyAnticipated(long millis)
anticipateUp
private void anticipateUp(MockElement element)
anticipateUp
private void anticipateUp(MockElement element,
boolean force)
anticipateDown
private void anticipateDown(MockElement element)
anticipateDown
private void anticipateDown(MockElement element,
boolean force)
anticipateDownEvent
private void anticipateDownEvent(MockElement element)
anticipateServicesUp
private void anticipateServicesUp(MockElement node)
anticipateServicesDown
private void anticipateServicesDown(MockElement node)
createOutages
private void createOutages(MockElement element,
Event event)
bringDownCritSvcs
private void bringDownCritSvcs(MockElement element)
main
public static void main(java.lang.String[] args)
Generated by eevans on May 29 2005 2015.