@Test public void testCollectWithCompountMertic() { final String testMetric = ".1.3.6.1.4.1.27091.3.1.6.1.2.171.19.37.60_inboundDelay"; final String testMetricValue = "12"; collectionJob.setService("TCA"); collectionJob.setNodeId(1); collectionJob.setNetInterface(localhost.getHostAddress()); collectionJob.addMetric(testMetric, destinations, "OnmsLocicMetricId"); collectionJob.setId("testing"); CollectionJob result = protocolCollector.collect(collectionJob); Assert.assertNotNull(result); Assert.assertEquals(result.getMetricValue(testMetric), testMetricValue); }
@Test public void testGetProtocol() { Assert.assertEquals("TCA", protocolCollector.getProtcol()); }