use of org.opennms.netmgt.snmp.SnmpValue in project opennms by OpenNMS.
the class SnmpMonitorStrategyTest method testMeetsCriteriaWithCounter64.
@Test
public void testMeetsCriteriaWithCounter64() {
SnmpValue result = counter64Value(1);
testSyntaxEquals(result, "1", "2");
testOrderOperations(result, 1);
}
use of org.opennms.netmgt.snmp.SnmpValue in project opennms by OpenNMS.
the class SnmpMonitorStrategyTest method testMeetsCriteriaWithCounter32.
@Test
public void testMeetsCriteriaWithCounter32() {
SnmpValue result = counter32Value(1);
testSyntaxEquals(result, "1", "2");
testOrderOperations(result, 1);
}
use of org.opennms.netmgt.snmp.SnmpValue in project opennms by OpenNMS.
the class SnmpMonitorStrategyTest method testMeetsCriteriaWithTimeTicks.
@Test
public void testMeetsCriteriaWithTimeTicks() {
SnmpValue result = timeticks("1");
testSyntaxEquals(result, "1", "2");
testOrderOperations(result, 1);
}
use of org.opennms.netmgt.snmp.SnmpValue in project opennms by OpenNMS.
the class SnmpMonitorStrategyTest method testMeetsCriteriaWithNullResult.
@Test
public void testMeetsCriteriaWithNullResult() {
SnmpValue result = null;
assertFalse(monitor.meetsCriteria(result, null, null));
}
use of org.opennms.netmgt.snmp.SnmpValue in project opennms by OpenNMS.
the class SnmpMonitorStrategyTest method testMeetsCriteriaWithInteger.
@Test
public void testMeetsCriteriaWithInteger() {
SnmpValue result = int32Value(1234);
testSyntaxEquals(result, "1234", "2234");
testOrderOperations(result, 1234);
testSyntaxMatches(result, "23", "14");
}
Aggregations