Tests writing text nodes (children of http:send-request bodies). @throws IOException I/O Exception
()
| 496 | * @throws IOException I/O Exception |
| 497 | */ |
| 498 | @Test public final void writeText() throws IOException { |
| 499 | Request request = new Request(); |
| 500 | request.payloadAtts.put(SerializerOptions.MEDIA_TYPE.name(), "application/octet-stream"); |
| 501 | request.payload.add(new FTxt("&")); |
| 502 | assertEquals("&", write(request)); |
| 503 | |
| 504 | request = new Request(); |
| 505 | request.payloadAtts.put(SerializerOptions.MEDIA_TYPE.name(), |
| 506 | "application/x-www-form-urlencoded"); |
| 507 | request.payload.add(new FTxt("&")); |
| 508 | assertEquals("&", write(request)); |
| 509 | } |
| 510 | |
| 511 | /** |
| 512 | * Tests writing of body content when @method is binary and output is xs:hexBinary. |
nothing calls this directly
no test coverage detected