Search in sources :

Example 11 with InternalServerErrorException

use of jakarta.ws.rs.InternalServerErrorException in project jaxrs-api by eclipse-ee4j.

the class JAXRSClientIT method constructorStringTest.

/*
   * @testName: constructorStringTest
   * 
   * @assertion_ids: JAXRS:JAVADOC:1070;
   * 
   * @test_Strategy: message - the detail message (which is saved for later
   * retrieval by the Throwable.getMessage() method).
   */
@Test
public void constructorStringTest() throws Fault {
    InternalServerErrorException e = new InternalServerErrorException(MESSAGE);
    assertMessage(e);
    assertResponse(e);
}
Also used : InternalServerErrorException(jakarta.ws.rs.InternalServerErrorException) Test(org.junit.jupiter.api.Test)

Example 12 with InternalServerErrorException

use of jakarta.ws.rs.InternalServerErrorException in project jaxrs-api by eclipse-ee4j.

the class JAXRSClientIT method constructorTest.

/*
   * @testName: constructorTest
   * 
   * @assertion_ids: JAXRS:JAVADOC:319; JAXRS:JAVADOC:12;
   * 
   * @test_Strategy: Construct a new internal server error exception.
   * 
   * getResponse
   */
@Test
public void constructorTest() throws Fault {
    InternalServerErrorException e = new InternalServerErrorException();
    assertResponse(e);
}
Also used : InternalServerErrorException(jakarta.ws.rs.InternalServerErrorException) Test(org.junit.jupiter.api.Test)

Aggregations

InternalServerErrorException (jakarta.ws.rs.InternalServerErrorException)12 Test (org.junit.jupiter.api.Test)12 Response (jakarta.ws.rs.core.Response)8 Status (jakarta.ws.rs.core.Response.Status)4 IOException (java.io.IOException)4