Search in sources :

Example 16 with GroupingsServiceResultException

use of edu.hawaii.its.api.type.GroupingsServiceResultException in project uhgroupings by uhawaii-system-its-ti-iam.

the class ErrorControllerAdviceTest method exceptionHandleTest.

@Test
public void exceptionHandleTest() throws GroupingsServiceResultException {
    GroupingsServiceResultException GSRE = new GroupingsServiceResultException();
    errorControllerAdvice.handleGroupingsServiceResultException(GSRE);
    String SRE = "<400,edu.hawaii.its.api.type.GroupingsHTTPException: " + "Groupings Service resulted in FAILURE,[]>";
    assertThat(errorControllerAdvice.handleGroupingsServiceResultException(GSRE).toString(), equalTo(SRE));
}
Also used : GroupingsServiceResultException(edu.hawaii.its.api.type.GroupingsServiceResultException) Test(org.junit.Test) SpringBootTest(org.springframework.boot.test.context.SpringBootTest)

Aggregations

GroupingsServiceResultException (edu.hawaii.its.api.type.GroupingsServiceResultException)16 GroupingsServiceResult (edu.hawaii.its.api.type.GroupingsServiceResult)15 Test (org.junit.Test)14 SpringBootTest (org.springframework.boot.test.context.SpringBootTest)14 Grouping (edu.hawaii.its.api.type.Grouping)6 Group (edu.hawaii.its.api.type.Group)1 Membership (edu.hawaii.its.api.type.Membership)1 Person (edu.hawaii.its.api.type.Person)1