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

Method noParams

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

Tests http:send-request((),()).

()

Source from the content-addressed store, hash-verified

181 * Tests http:send-request((),()).
182 */
183 @Test public final void noParams() {
184 final Command cmd = new XQuery(_HTTP_SEND_REQUEST.args(" ()"));
185 try {
186 cmd.execute(ctx);
187 fail("Error expected");
188 } catch(final BaseXException ex) {
189 assertTrue(ex.getMessage().contains(ErrType.HC.toString()));
190 }
191 }
192
193 /**
194 * Tests an erroneous query.

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected