diff --git a/src/main/java/io/xlate/jsonapi/rvp/internal/validation/boundary/TransactionalValidator.java b/src/main/java/io/xlate/jsonapi/rvp/internal/validation/boundary/TransactionalValidator.java index deee1a8..41f805b 100644 --- a/src/main/java/io/xlate/jsonapi/rvp/internal/validation/boundary/TransactionalValidator.java +++ b/src/main/java/io/xlate/jsonapi/rvp/internal/validation/boundary/TransactionalValidator.java @@ -16,11 +16,10 @@ @ApplicationScoped public class TransactionalValidator { - private final Validator validator; + private Validator validator; @Inject - public TransactionalValidator(Validator validator) { - super(); + public void setValidator(Validator validator) { this.validator = validator; } diff --git a/src/test/java/io/xlate/jsonapi/rvp/JsonApiResourceTest.java b/src/test/java/io/xlate/jsonapi/rvp/JsonApiResourceTest.java index cfbd2fc..4ebe91c 100644 --- a/src/test/java/io/xlate/jsonapi/rvp/JsonApiResourceTest.java +++ b/src/test/java/io/xlate/jsonapi/rvp/JsonApiResourceTest.java @@ -80,7 +80,8 @@ void setUp() { target.handlers = Mockito.mock(Instance.class); target.request = Mockito.mock(Request.class); target.security = Mockito.mock(SecurityContext.class); - target.txValidator = new TransactionalValidator(target.validator); + target.txValidator = new TransactionalValidator(); + target.txValidator.setValidator(target.validator); Mockito.when(target.handlers.iterator()).thenReturn(handlerIterator());