Tests http:send-request((),()).
()
| 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. |
nothing calls this directly
no test coverage detected