private EndPointImpl getEndPoint(final String sysOid, final String address) throws UnknownHostException { final EndPointImpl endPoint = new EndPointImpl(InetAddressUtils.getLocalHostAddress(), getAgentConfig(address)); endPoint.setSysOid(sysOid); return endPoint; }
@Test @JUnitSnmpAgent(host = "192.168.255.10", resource = "classpath:/airPairR3_walk.properties") public void dwoTestEndPointImplGetOid() throws UnknownHostException { EndPointImpl endPoint = getEndPoint(null, "192.168.255.10"); SnmpValue snmpVal = endPoint.get(AIR_PAIR_MODEM_LOSS_OF_SIGNAL); assertNotNull(snmpVal); assertEquals("1", snmpVal.toString()); }