@Test public void testAfterPropertiesSetWithGoodConfigFile() throws Exception { XmlDataCollectionConfigDaoJaxb dao = new XmlDataCollectionConfigDaoJaxb(); File xmlCollectionConfig= new File("src/test/resources/", XmlDataCollectionConfig.XML_DATACOLLECTION_CONFIG_FILE); assertTrue(XmlDataCollectionConfig.XML_DATACOLLECTION_CONFIG_FILE + " is readable", xmlCollectionConfig.canRead()); InputStream in = new FileInputStream(xmlCollectionConfig); dao.setConfigResource(new InputStreamResource(in)); dao.afterPropertiesSet(); Assert.assertNotNull("xml data collection should not be null", dao.getConfig()); }
public XmlDataCollectionConfig getConfig() { return getContainer().getObject(); }
XmlDataCollectionConfigDaoJaxb extends AbstractJaxbConfigDao<XmlDataCollectionConfig, XmlDataCollectionConfig> implements XmlDataCollectionConfigDao { public XmlDataCollectionConfig getConfig() { return getContainer().getObject(); } }
XmlDataCollectionConfigDaoJaxb extends AbstractJaxbConfigDao<XmlDataCollectionConfig, XmlDataCollectionConfig> implements XmlDataCollectionConfigDao { public XmlDataCollectionConfig getConfig() { return getContainer().getObject(); } XmlDataCollectionConfigDaoJaxb(); }
XmlDataCollectionConfigDaoJaxb extends AbstractJaxbConfigDao<XmlDataCollectionConfig, XmlDataCollectionConfig> implements XmlDataCollectionConfigDao { public XmlDataCollectionConfig getConfig() { return getContainer().getObject(); } XmlDataCollectionConfigDaoJaxb(); XmlDataCollection getDataCollectionByName(String name); XmlDataCollection getDataCollectionByIndex(int idx); XmlDataCollectionConfig getConfig(); }
XmlDataCollectionConfigDaoJaxb extends AbstractJaxbConfigDao<XmlDataCollectionConfig, XmlDataCollectionConfig> implements XmlDataCollectionConfigDao { public XmlDataCollectionConfig getConfig() { return getContainer().getObject(); } XmlDataCollectionConfigDaoJaxb(); XmlDataCollection getDataCollectionByName(String name); XmlDataCollection getDataCollectionByIndex(int idx); XmlDataCollectionConfig getConfig();  }