@Test public void testSaveSettings() throws IOException { marshallingService.saveSettings(xmlFile, jobSchedulingData); assertTrue(xmlFile.exists()); System.out.printf( "生成的xml文件:%s%s", xmlFile.getAbsoluteFile(), System.getProperty("line.separator")); }
@Test public void testLoadSettings() throws IOException { JobSchedulingData jobSchedulingData = marshallingService.loadSettings(xmlFile, this.jobSchedulingData); assertNotNull(jobSchedulingData); logger.debug(jobSchedulingData.toString()); // TODO 为何不起作用? System.out.printf( "逆向生成的jobSchedulingData:%s%s", jobSchedulingData.toString(), System.getProperty("line.separator")); }