Esempio n. 1
0
 @Test(timeout = 20000)
 @JUnitSnmpAgent(
     host = PercDetectorTest.TEST_IP_ADDRESS,
     resource = "classpath:org/opennms/netmgt/provision/detector/percDetector.properties")
 public void testDetectorFail() throws UnknownHostException {
   m_detector.setArrayNumber("0.1");
   assertFalse(m_detector.isServiceDetected(InetAddressUtils.addr(TEST_IP_ADDRESS)));
 }
Esempio n. 2
0
  @Before
  public void setUp() throws InterruptedException {
    MockLogAppender.setupLogging();

    m_detector.setArrayNumber("0.0"); // the default
    m_detector.setRetries(2);
    m_detector.setTimeout(500);
  }