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

Method emptyReq

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

Test sending of HTTP request without any attributes - error shall be thrown that mandatory attributes are missing.

()

Source from the content-addressed store, hash-verified

169 * that mandatory attributes are missing.
170 */
171 @Test public final void emptyReq() {
172 try {
173 new XQuery(_HTTP_SEND_REQUEST.args(" <http:request/>")).execute(ctx);
174 fail("Error expected");
175 } catch(final BaseXException ex) {
176 assertTrue(ex.getMessage().contains(ErrType.HC.toString()));
177 }
178 }
179
180 /**
181 * Tests http:send-request((),()).

Callers

nothing calls this directly

Calls 5

executeMethod · 0.65
argsMethod · 0.65
containsMethod · 0.65
toStringMethod · 0.65
getMessageMethod · 0.45

Tested by

no test coverage detected