@Test public void testAfterPropertiesSetWithGoodConfigFile() throws Exception { JMXDataCollectionConfigDao dao = new JMXDataCollectionConfigDao(); File jmxCollectionConfig= new File("src/test/resources/org/opennms/netmgt/config/jmx-datacollection-testdata.xml"); assertTrue("JMX configuration file is readable", jmxCollectionConfig.canRead()); InputStream in = new FileInputStream(jmxCollectionConfig); dao.setConfigResource(new InputStreamResource(in)); dao.afterPropertiesSet(); Assert.assertNotNull("JMX data collection should not be null", dao.getConfig()); }
public JmxDatacollectionConfig getConfig() { return getContainer().getObject(); }
JMXDataCollectionConfigDao extends AbstractJaxbConfigDao<JmxDatacollectionConfig,JmxDatacollectionConfig> { public JmxDatacollectionConfig getConfig() { return getContainer().getObject(); } }
JMXDataCollectionConfigDao extends AbstractJaxbConfigDao<JmxDatacollectionConfig,JmxDatacollectionConfig> { public JmxDatacollectionConfig getConfig() { return getContainer().getObject(); } JMXDataCollectionConfigDao(); }
JMXDataCollectionConfigDao extends AbstractJaxbConfigDao<JmxDatacollectionConfig,JmxDatacollectionConfig> { public JmxDatacollectionConfig getConfig() { return getContainer().getObject(); } JMXDataCollectionConfigDao(); JmxDatacollectionConfig getConfig(); }
JMXDataCollectionConfigDao extends AbstractJaxbConfigDao<JmxDatacollectionConfig,JmxDatacollectionConfig> { public JmxDatacollectionConfig getConfig() { return getContainer().getObject(); } JMXDataCollectionConfigDao(); JmxDatacollectionConfig getConfig();  }