ArquillianProxyException instead of ConstrainViolationException in JUnit @Test(expected)
问题 When using Arquillian to test my (JPA) entities as part of an integration test, everything seems seems to work, except testing for ConstraintViolation s. For example it should not be possible to persist an entity instance which had null values in fields annotated with Bean Validation's @NotNull. Instead of a ConstrainViolationException I get ArquillianProxyException : Unexpected exception, expected<javax.validation.ConstraintViolationException> but was<org.jboss.arquillian.test.spi