test/src/main/java/de/taimos/dvalin/test/jaxrs/APITest.java
/**
     * enriches the given {@link HTTPRequest} with the the given object as JSON using the default ObjectMapper
     *
     * @param req the request to enrich
     * @param o   the object to map and use as body
     * @return the enriched request
     * @throws RuntimeException if serialization fails
     */
enriches the given  HTTPRequest with the the given object as JSON using the default ObjectMapper
@param req the request to enrich
@param o   the object to map and use as body
@return the enriched request
@throws RuntimeException if serialization fails
enriches the given HTTPRequest with the the given object as JSON using the default ObjectMapper @param req the request to enrich @param o the object to map and use as body @return the enriched request @throws RuntimeException if serialization fails
protected HTTPRequest jsonBody(HTTPRequest req, Object o) {
        try {
            String json = MapperFactory.createDefault().writeValueAsString(o);
            return req.contentType(APITest.APPLICATION_JSON).body(json);
        } catch (JsonProcessingException e) {
            throw new RuntimeException(e);
        }
    }
protected HTTPRequest jsonBody ( HTTPRequest req , Object o ) { try { String json = MapperFactory . createDefault ( ) . writeValueAsString ( o ) ; return req . contentType ( APITest . APPLICATION_JSON ) . body ( json ) ; } catch ( JsonProcessingException e ) { throw new RuntimeException ( e ) ; } }
enriches the given {@link HTTPRequest} with the the given object as JSON using the default ObjectMapper
 @param req the request to enrich
 @param o   the object to map and use as body
 @return the enriched request
 @throws RuntimeException if serialization fails
enriches the given { @link HTTPRequest } with the the given object as JSON using the default ObjectMapper @param req the request to enrich @param o the object to map and use as body @return the enriched request @throws RuntimeException if serialization fails