@Test(expected = ValidationException.class) public void testNull() { sut.validate(TestContextCreator.createPrincipalActionContext(null, null)); }
@Override public void validate(final ActionContext inActionContext) throws ValidationException { PostSplitActivityAndCommentsRequest request = (PostSplitActivityAndCommentsRequest) inActionContext .getParams(); if (request == null) { throw new ValidationException("A request must be provided."); } if (StringUtils.isBlank(request.getText())) { throw new ValidationException("Request must provide text content."); } }
PostSplitActivityAndCommentsValidation implements ValidationStrategy<ActionContext> { @Override public void validate(final ActionContext inActionContext) throws ValidationException { PostSplitActivityAndCommentsRequest request = (PostSplitActivityAndCommentsRequest) inActionContext .getParams(); if (request == null) { throw new ValidationException("A request must be provided."); } if (StringUtils.isBlank(request.getText())) { throw new ValidationException("Request must provide text content."); } } }
PostSplitActivityAndCommentsValidation implements ValidationStrategy<ActionContext> { @Override public void validate(final ActionContext inActionContext) throws ValidationException { PostSplitActivityAndCommentsRequest request = (PostSplitActivityAndCommentsRequest) inActionContext .getParams(); if (request == null) { throw new ValidationException("A request must be provided."); } if (StringUtils.isBlank(request.getText())) { throw new ValidationException("Request must provide text content."); } }  }
PostSplitActivityAndCommentsValidation implements ValidationStrategy<ActionContext> { @Override public void validate(final ActionContext inActionContext) throws ValidationException { PostSplitActivityAndCommentsRequest request = (PostSplitActivityAndCommentsRequest) inActionContext .getParams(); if (request == null) { throw new ValidationException("A request must be provided."); } if (StringUtils.isBlank(request.getText())) { throw new ValidationException("Request must provide text content."); } }  @Override void validate(final ActionContext inActionContext); }
PostSplitActivityAndCommentsValidation implements ValidationStrategy<ActionContext> { @Override public void validate(final ActionContext inActionContext) throws ValidationException { PostSplitActivityAndCommentsRequest request = (PostSplitActivityAndCommentsRequest) inActionContext .getParams(); if (request == null) { throw new ValidationException("A request must be provided."); } if (StringUtils.isBlank(request.getText())) { throw new ValidationException("Request must provide text content."); } }  @Override void validate(final ActionContext inActionContext);  }