private void testConfig2Xml2Config(String fileName) { final Config config = new ClasspathXmlConfig(fileName); final String xml = new ConfigXmlGenerator(true).generate(config); final Config config2 = new InMemoryXmlConfig(xml); assertTrue(config.isCompatible(config2)); assertTrue(config2.isCompatible(config)); }
private void testConfig2Xml2Config(String fileName) { String pass = "******"; final Config config = new ClasspathXmlConfig(fileName); config.getGroupConfig().setPassword(pass); final String xml = new ConfigXmlGenerator(true).generate(config); final Config config2 = new InMemoryXmlConfig(xml); config2.getGroupConfig().setPassword(pass); assertTrue(config.isCompatible(config2)); assertTrue(config2.isCompatible(config)); }