use of io.crnk.internal.boot.cdi.model.CdiTestExceptionMapper in project crnk-framework by crnk-project.
the class CdiServiceDiscoveryTest method testExceptionMapper.
@Test
public void testExceptionMapper() {
CrnkBoot boot = new CrnkBoot();
boot.boot();
Optional<JsonApiExceptionMapper> mapper = boot.getExceptionMapperRegistry().findMapperFor(IllegalStateException.class);
Assert.assertTrue(mapper.isPresent());
Assert.assertTrue(mapper.get() instanceof CdiTestExceptionMapper);
}
Aggregations