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

Method unknown

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

Tests an erroneous query. @throws Exception exception

()

Source from the content-addressed store, hash-verified

195 * @throws Exception exception
196 */
197 @Test public final void unknown() throws Exception {
198 try(QueryProcessor qp = new QueryProcessor(_HTTP_SEND_REQUEST.args(
199 " <http:request method='get'/>", REST_URL + "unknown") + "[1]/@status/data()", ctx)) {
200 assertEquals("404", qp.value().serialize().toString());
201 }
202 }
203
204 /**
205 * Parse normal request.

Callers

nothing calls this directly

Calls 5

assertEqualsMethod · 0.80
argsMethod · 0.65
toStringMethod · 0.65
serializeMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected