test/src/main/java/de/taimos/dvalin/test/jaxrs/APITest.java
/**
     * prints the given object serialized to JSON to the console. The given label is prefixed to the output
     *
     * @param label the label to use as prefix
     * @param o     the object to serialize
     * @throws RuntimeException if serialization fails
     */
prints the given object serialized to JSON to the console. The given label is prefixed to the output
@param label the label to use as prefix
@param o     the object to serialize
@throws RuntimeException if serialization fails
prints the given object serialized to JSON to the console . The given label is prefixed to the output @param label the label to use as prefix @param o the object to serialize @throws RuntimeException if serialization fails
protected void print(String label, Object o) {
        try {
            String json = MapperFactory.createDefault().writeValueAsString(o);
            System.out.println(label + ": " + json);
        } catch (JsonProcessingException e) {
            throw new RuntimeException(e);
        }
    }
protected void print ( String label , Object o ) { try { String json = MapperFactory . createDefault ( ) . writeValueAsString ( o ) ; System . out . println ( label + ": " + json ) ; } catch ( JsonProcessingException e ) { throw new RuntimeException ( e ) ; } }
prints the given object serialized to JSON to the console.
prints the given object serialized to JSON to the console .