@Test public void testWrite() { try { WorkflowTrace trace = new WorkflowTrace(); action = new SendAction(new ClientHelloMessage(config)); trace.addTlsAction(action); File f = folder.newFile(); WorkflowTraceSerializer.write(f, trace); Assert.assertTrue(f.exists()); } catch (JAXBException | IOException ex) { LOGGER.error(ex.getLocalizedMessage(), ex); Assert.fail(); } }
public static void write(File file, WorkflowTrace trace) throws FileNotFoundException, JAXBException, IOException { FileOutputStream fos = new FileOutputStream(file); WorkflowTraceSerializer.write(fos, trace); }
WorkflowTraceSerializer { public static void write(File file, WorkflowTrace trace) throws FileNotFoundException, JAXBException, IOException { FileOutputStream fos = new FileOutputStream(file); WorkflowTraceSerializer.write(fos, trace); } }
WorkflowTraceSerializer { public static void write(File file, WorkflowTrace trace) throws FileNotFoundException, JAXBException, IOException { FileOutputStream fos = new FileOutputStream(file); WorkflowTraceSerializer.write(fos, trace); } private  WorkflowTraceSerializer(); }
WorkflowTraceSerializer { public static void write(File file, WorkflowTrace trace) throws FileNotFoundException, JAXBException, IOException { FileOutputStream fos = new FileOutputStream(file); WorkflowTraceSerializer.write(fos, trace); } private  WorkflowTraceSerializer(); static void write(File file, WorkflowTrace trace); static String write(WorkflowTrace trace); static void write(OutputStream outputStream, WorkflowTrace workflowTrace); static WorkflowTrace read(InputStream inputStream); static List<WorkflowTrace> readFolder(File f); }
WorkflowTraceSerializer { public static void write(File file, WorkflowTrace trace) throws FileNotFoundException, JAXBException, IOException { FileOutputStream fos = new FileOutputStream(file); WorkflowTraceSerializer.write(fos, trace); } private  WorkflowTraceSerializer(); static void write(File file, WorkflowTrace trace); static String write(WorkflowTrace trace); static void write(OutputStream outputStream, WorkflowTrace workflowTrace); static WorkflowTrace read(InputStream inputStream); static List<WorkflowTrace> readFolder(File f);  }