@Test public void objectToXml()throws Exception { XStreamSample.objectToXml(); FileReader reader = new FileReader("out/XStreamSample.xml"); BufferedReader br = new BufferedReader(reader); StringBuffer sb = new StringBuffer(""); String s; while ((s = br.readLine()) != null) { sb.append(s); } System.out.println(sb.toString()); reader.close(); br.close(); assertXpathExists(" assertXpathExists(" assertXpathExists(" assertXpathExists(" }
public static void objectToXml() throws Exception { User user = getUser(); FileOutputStream outputStream = new FileOutputStream("out/XStreamSample.xml"); xstream.toXML(user, outputStream); }
XStreamSample { public static void objectToXml() throws Exception { User user = getUser(); FileOutputStream outputStream = new FileOutputStream("out/XStreamSample.xml"); xstream.toXML(user, outputStream); } }
XStreamSample { public static void objectToXml() throws Exception { User user = getUser(); FileOutputStream outputStream = new FileOutputStream("out/XStreamSample.xml"); xstream.toXML(user, outputStream); }  }
XStreamSample { public static void objectToXml() throws Exception { User user = getUser(); FileOutputStream outputStream = new FileOutputStream("out/XStreamSample.xml"); xstream.toXML(user, outputStream); }  static User getUser(); static void objectToXml(); static User xmlToObject(); static void main(String[] args); }
XStreamSample { public static void objectToXml() throws Exception { User user = getUser(); FileOutputStream outputStream = new FileOutputStream("out/XStreamSample.xml"); xstream.toXML(user, outputStream); }  static User getUser(); static void objectToXml(); static User xmlToObject(); static void main(String[] args);  }