@Test public void 想定したExceptionMapperが返却される() { Set<Class<?>> classes = JerseyConfigs.getExcpetionMappers(); assertThat(classes.size(), is(14)); }
public static Set<Class<?>> getExcpetionMappers() { Set<Class<?>> classes = new LinkedHashSet<Class<?>>(); classes.add(ApplicationRecoverableExceptionMapper.class); classes.add(ApplicationUnrecoverableExceptionMapper.class); classes.add(SystemExceptionMapper.class); classes.add(BadRequestExceptionMapper.class); classes.add(ClientErrorExceptionMapper.class); classes.add(InternalServerErrorExceptionMapper.class); classes.add(NotAcceptableExceptionMapper.class); classes.add(NotAllowedExceptionMapper.class); classes.add(NotAuthorizedExceptionMapper.class); classes.add(NotSupportedExceptionMapper.class); classes.add(ServerErrorExceptionMapper.class); classes.add(ServiceUnavailableExceptionMapper.class); classes.add(ThrowableMapper.class); classes.add(ValidationExceptionMapper.class); return classes; }
JerseyConfigs { public static Set<Class<?>> getExcpetionMappers() { Set<Class<?>> classes = new LinkedHashSet<Class<?>>(); classes.add(ApplicationRecoverableExceptionMapper.class); classes.add(ApplicationUnrecoverableExceptionMapper.class); classes.add(SystemExceptionMapper.class); classes.add(BadRequestExceptionMapper.class); classes.add(ClientErrorExceptionMapper.class); classes.add(InternalServerErrorExceptionMapper.class); classes.add(NotAcceptableExceptionMapper.class); classes.add(NotAllowedExceptionMapper.class); classes.add(NotAuthorizedExceptionMapper.class); classes.add(NotSupportedExceptionMapper.class); classes.add(ServerErrorExceptionMapper.class); classes.add(ServiceUnavailableExceptionMapper.class); classes.add(ThrowableMapper.class); classes.add(ValidationExceptionMapper.class); return classes; } }
JerseyConfigs { public static Set<Class<?>> getExcpetionMappers() { Set<Class<?>> classes = new LinkedHashSet<Class<?>>(); classes.add(ApplicationRecoverableExceptionMapper.class); classes.add(ApplicationUnrecoverableExceptionMapper.class); classes.add(SystemExceptionMapper.class); classes.add(BadRequestExceptionMapper.class); classes.add(ClientErrorExceptionMapper.class); classes.add(InternalServerErrorExceptionMapper.class); classes.add(NotAcceptableExceptionMapper.class); classes.add(NotAllowedExceptionMapper.class); classes.add(NotAuthorizedExceptionMapper.class); classes.add(NotSupportedExceptionMapper.class); classes.add(ServerErrorExceptionMapper.class); classes.add(ServiceUnavailableExceptionMapper.class); classes.add(ThrowableMapper.class); classes.add(ValidationExceptionMapper.class); return classes; } private  JerseyConfigs(); }
JerseyConfigs { public static Set<Class<?>> getExcpetionMappers() { Set<Class<?>> classes = new LinkedHashSet<Class<?>>(); classes.add(ApplicationRecoverableExceptionMapper.class); classes.add(ApplicationUnrecoverableExceptionMapper.class); classes.add(SystemExceptionMapper.class); classes.add(BadRequestExceptionMapper.class); classes.add(ClientErrorExceptionMapper.class); classes.add(InternalServerErrorExceptionMapper.class); classes.add(NotAcceptableExceptionMapper.class); classes.add(NotAllowedExceptionMapper.class); classes.add(NotAuthorizedExceptionMapper.class); classes.add(NotSupportedExceptionMapper.class); classes.add(ServerErrorExceptionMapper.class); classes.add(ServiceUnavailableExceptionMapper.class); classes.add(ThrowableMapper.class); classes.add(ValidationExceptionMapper.class); return classes; } private  JerseyConfigs(); static Set<Class<?>> getExcpetionMappers(); }
JerseyConfigs { public static Set<Class<?>> getExcpetionMappers() { Set<Class<?>> classes = new LinkedHashSet<Class<?>>(); classes.add(ApplicationRecoverableExceptionMapper.class); classes.add(ApplicationUnrecoverableExceptionMapper.class); classes.add(SystemExceptionMapper.class); classes.add(BadRequestExceptionMapper.class); classes.add(ClientErrorExceptionMapper.class); classes.add(InternalServerErrorExceptionMapper.class); classes.add(NotAcceptableExceptionMapper.class); classes.add(NotAllowedExceptionMapper.class); classes.add(NotAuthorizedExceptionMapper.class); classes.add(NotSupportedExceptionMapper.class); classes.add(ServerErrorExceptionMapper.class); classes.add(ServiceUnavailableExceptionMapper.class); classes.add(ThrowableMapper.class); classes.add(ValidationExceptionMapper.class); return classes; } private  JerseyConfigs(); static Set<Class<?>> getExcpetionMappers();  }