use of jakarta.ws.rs.core.StreamingOutput in project jaxrs-api by eclipse-ee4j.
the class StreamOutputTest method testIOException.
@GET
@Path("IOExceptionTest")
public Response testIOException() {
StreamingOutput so = new StreamingOutput() {
public void write(OutputStream output) throws IOException {
throw new IOException("TckIOExceptionTest");
}
};
Response response = Response.ok(so).build();
return response;
}
use of jakarta.ws.rs.core.StreamingOutput in project jaxrs-api by eclipse-ee4j.
the class JAXRSClientIT method clientStreamingOutputWriterTest.
/*
* @testName: clientStreamingOutputWriterTest
*
* @assertion_ids: JAXRS:SPEC:70;
*
* @test_Strategy: See Section 4.2.4 for a list of entity providers that MUST
* be supported by all JAX-RS implementations
*/
@Test
public void clientStreamingOutputWriterTest() throws Fault {
setProperty(Property.REQUEST_HEADERS, buildContentType(MediaType.APPLICATION_FORM_URLENCODED_TYPE));
StreamingOutput output = new StringStreamingOutput(entity);
standardWriterInvocation(output);
}
Aggregations