@Test void testConvert() { Document doc = new Document(new Element("rootElement")); String actual = testSubject.convert(doc); assertNotNull(actual); assertTrue(actual.contains("rootElement"), "Wrong output: " + actual); }
@Override public String convert(Document original) { return original.toXML(); }
XomToStringConverter implements ContentTypeConverter<Document,String> { @Override public String convert(Document original) { return original.toXML(); } }
XomToStringConverter implements ContentTypeConverter<Document,String> { @Override public String convert(Document original) { return original.toXML(); }  }
XomToStringConverter implements ContentTypeConverter<Document,String> { @Override public String convert(Document original) { return original.toXML(); }  @Override Class<Document> expectedSourceType(); @Override Class<String> targetType(); @Override String convert(Document original); }
XomToStringConverter implements ContentTypeConverter<Document,String> { @Override public String convert(Document original) { return original.toXML(); }  @Override Class<Document> expectedSourceType(); @Override Class<String> targetType(); @Override String convert(Document original);  }