Search in sources :

Example 21 with Integer32

use of org.snmp4j.smi.Integer32 in project opennms by OpenNMS.

the class MockSnmpAgentIT method testGetNext.

@Test
public void testGetNext() throws Exception {
    request("1.3.5.1.1.3").andExpect("1.3.5.1.1.3.0", SMIConstants.SYNTAX_INTEGER, new Integer32(42));
    doGetNext();
}
Also used : Integer32(org.snmp4j.smi.Integer32) Test(org.junit.Test)

Aggregations

Integer32 (org.snmp4j.smi.Integer32)21 Test (org.junit.Test)12 OctetString (org.snmp4j.smi.OctetString)11 OID (org.snmp4j.smi.OID)7 PDU (org.snmp4j.PDU)4 TimeTicks (org.snmp4j.smi.TimeTicks)4 VariableBinding (org.snmp4j.smi.VariableBinding)4 IpAddress (org.snmp4j.smi.IpAddress)3 Null (org.snmp4j.smi.Null)3 Variable (org.snmp4j.smi.Variable)3 IOException (java.io.IOException)1 UndeclaredThrowableException (java.lang.reflect.UndeclaredThrowableException)1 DecimalFormat (java.text.DecimalFormat)1 Date (java.util.Date)1 Matcher (java.util.regex.Matcher)1 SnmpBindingProvider (org.openhab.binding.snmp.SnmpBindingProvider)1 Command (org.openhab.core.types.Command)1 BindingConfigParseException (org.openhab.model.item.binding.BindingConfigParseException)1 DynamicVariable (org.opennms.mock.snmp.responder.DynamicVariable)1 SnmpErrorStatusException (org.opennms.mock.snmp.responder.SnmpErrorStatusException)1