use of io.gravitee.rest.api.service.exceptions.TicketNotFoundException in project gravitee-management-rest-api by gravitee-io.
the class PlatformTicketsResourceTest method shouldNotFindTicket.
@Test
public void shouldNotFindTicket() {
when(ticketService.findById(any(String.class))).thenThrow(new TicketNotFoundException("id"));
Response ticket = envTarget(TICKET).request().get();
assertEquals(NOT_FOUND_404, ticket.getStatus());
}
Aggregations