use of jakarta.ws.rs.core.Response.ResponseBuilder in project jaxrs-api by eclipse-ee4j.
the class JAXRSClientIT method setGenericTypeTest.
/*
* @testName: setGenericTypeTest
*
* @assertion_ids: JAXRS:JAVADOC:911; JAXRS:JAVADOC:920; JAXRS:SPEC:85;
*
* @test_Strategy: Update type of the object to be produced or written.
*
* ReaderInterceptor.aroundReadFrom If abortWith is invoked, execution is
* aborted
*/
@Test
public void setGenericTypeTest() throws Fault {
ResponseBuilder builder = createResponse(ContextOperation.SETGENERICTYPE);
Response fake = builder.build();
addProviders(fake);
setProperty(Property.SEARCH_STRING, "[B");
invoke();
}
use of jakarta.ws.rs.core.Response.ResponseBuilder in project jaxrs-api by eclipse-ee4j.
the class JAXRSClientIT method getHeadersOperationSetTest.
/*
* @testName: getHeadersOperationSetTest
*
* @assertion_ids: JAXRS:JAVADOC:923; JAXRS:JAVADOC:920; JAXRS:SPEC:85;
*
* @test_Strategy: Get mutable map of HTTP headers.
*
* ReaderInterceptor.aroundReadFrom If abortWith is invoked, execution is
* aborted
*/
@Test
public void getHeadersOperationSetTest() throws Fault {
ResponseBuilder builder = createResponse(ContextOperation.GETHEADERS);
Response fake = builder.build();
addProviders(fake);
setProperty(Property.SEARCH_STRING_IGNORE_CASE, TemplateInterceptorBody.OPERATION);
invoke();
}
use of jakarta.ws.rs.core.Response.ResponseBuilder in project jaxrs-api by eclipse-ee4j.
the class JAXRSClientIT method getInputStreamTest.
/*
* @testName: getInputStreamTest
*
* @assertion_ids: JAXRS:JAVADOC:924; JAXRS:JAVADOC:920; JAXRS:SPEC:85;
*
* @test_Strategy: Get the input stream of the object to be read.
*
* ReaderInterceptor.aroundReadFrom If abortWith is invoked, execution is
* aborted
*/
@Test
public void getInputStreamTest() throws Fault {
String entity = "getInputStreamEntity";
ResponseBuilder builder = createResponse(ContextOperation.GETINPUTSTREAM);
Response fake = builder.entity(entity).build();
addProviders(fake);
setProperty(Property.SEARCH_STRING, entity);
invoke();
}
use of jakarta.ws.rs.core.Response.ResponseBuilder in project jaxrs-api by eclipse-ee4j.
the class JAXRSClientIT method proceedThrowsIOExceptionTest.
/*
* @testName: proceedThrowsIOExceptionTest
*
* @assertion_ids: JAXRS:JAVADOC:925; JAXRS:JAVADOC:926; JAXRS:JAVADOC:920;
* JAXRS:SPEC:85;
*
* @test_Strategy: Throws: IOException - if an IO error arises
*
* Proceed is tested in any of the interceptor tests.
*
* ReaderInterceptor.aroundReadFrom If abortWith is invoked, execution is
* aborted
*/
@Test
public void proceedThrowsIOExceptionTest() throws Fault {
ResponseBuilder builder = createResponse(ContextOperation.PROCEEDTHROWSIOEXCEPTION);
Response fake = builder.build();
addProviders(fake);
setProperty(Property.SEARCH_STRING, TemplateInterceptorBody.IOE);
invoke();
}
use of jakarta.ws.rs.core.Response.ResponseBuilder in project jaxrs-api by eclipse-ee4j.
the class JAXRSClientIT method getHeadersIsMutableTest.
/* Run test */
/*
* @testName: getHeadersIsMutableTest
*
* @assertion_ids: JAXRS:JAVADOC:923; JAXRS:JAVADOC:920; JAXRS:SPEC:85;
*
* @test_Strategy: Get mutable map of HTTP headers.
*
* ReaderInterceptor.aroundReadFrom If abortWith is invoked, execution is
* aborted
*/
@Test
public void getHeadersIsMutableTest() throws Fault {
ResponseBuilder builder = createResponse(ContextOperation.GETHEADERSISMUTABLE);
Response fake = builder.build();
addProviders(fake);
setProperty(Property.SEARCH_STRING, TemplateInterceptorBody.PROPERTY);
invoke();
}
Aggregations