@Test public void marshalDOntValidateString() { final KeyDataConfig input = new KeyDataConfig(null, null); String resultData = JaxbUtil.marshalToStringNoValidation(input); JsonObject result = Json.createReader(new StringReader(resultData)).readObject(); assertThat(result).isEmpty(); }
public static String marshalToStringNoValidation(Object object) { return IOCallback.execute( () -> { try (OutputStream out = new ByteArrayOutputStream()) { marshalWithNoValidation(object, out); return out.toString(); } }); }
JaxbUtil { public static String marshalToStringNoValidation(Object object) { return IOCallback.execute( () -> { try (OutputStream out = new ByteArrayOutputStream()) { marshalWithNoValidation(object, out); return out.toString(); } }); } }
JaxbUtil { public static String marshalToStringNoValidation(Object object) { return IOCallback.execute( () -> { try (OutputStream out = new ByteArrayOutputStream()) { marshalWithNoValidation(object, out); return out.toString(); } }); } private  JaxbUtil(); }
JaxbUtil { public static String marshalToStringNoValidation(Object object) { return IOCallback.execute( () -> { try (OutputStream out = new ByteArrayOutputStream()) { marshalWithNoValidation(object, out); return out.toString(); } }); } private  JaxbUtil(); static T unmarshal(InputStream inputStream, Class<T> type); static void marshal(Object object, OutputStream outputStream); static void marshalWithNoValidation(Object object, OutputStream outputStream); static String marshalToString(Object object); static String marshalToStringNoValidation(Object object); static void marshalMasked(Config object, OutputStream outputStream); }
JaxbUtil { public static String marshalToStringNoValidation(Object object) { return IOCallback.execute( () -> { try (OutputStream out = new ByteArrayOutputStream()) { marshalWithNoValidation(object, out); return out.toString(); } }); } private  JaxbUtil(); static T unmarshal(InputStream inputStream, Class<T> type); static void marshal(Object object, OutputStream outputStream); static void marshalWithNoValidation(Object object, OutputStream outputStream); static String marshalToString(Object object); static String marshalToStringNoValidation(Object object); static void marshalMasked(Config object, OutputStream outputStream); static final Class[] JAXB_CLASSES; }