MCPcopy Create free account
hub / github.com/BaseXdb/basex / put

Method put

basex-api/src/test/java/org/basex/http/FnHttpTest.java:64–71  ·  view source on GitHub ↗

Test sending of HTTP PUT requests. @throws Exception exception

()

Source from the content-addressed store, hash-verified

62 * @throws Exception exception
63 */
64 @Test public final void put() throws Exception {
65 try(QueryProcessor qp = new QueryProcessor(_HTTP_SEND_REQUEST.args(
66 " <http:request method='put' status-only='true'>"
67 + "<http:body media-type='text/xml'>" + BOOKS + "</http:body>"
68 + "</http:request>", REST_URL), ctx)) {
69 checkResponse(qp.value(), 1, 201);
70 }
71 }
72
73 /**
74 * Test sending of HTTP POST requests.

Callers 9

errorsMethod · 0.45
writeMultipartMessageMethod · 0.45
writeMultipartBinaryMethod · 0.45
writeMessageMethod · 0.45
writeBase64Method · 0.45
writeTextMethod · 0.45
writeHexMethod · 0.45
writeFromResourceMethod · 0.45
headerMethod · 0.45

Calls 3

checkResponseMethod · 0.95
argsMethod · 0.65
valueMethod · 0.45

Tested by

no test coverage detected