Test sending of HTTP request without any attributes - error shall be thrown that mandatory attributes are missing.
()
| 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((),()). |
nothing calls this directly
no test coverage detected