@Override public Document addCommentToAlert(CommentAddRemoveRequest request, Document latest) throws IOException { return getUpdateDao().addCommentToAlert(request, latest); }
@Override public Document addCommentToAlert(CommentAddRemoveRequest request, Document latest) throws IOException { return getUpdateDao().addCommentToAlert(request, latest); }
@Override public Document addCommentToAlert(CommentAddRemoveRequest request) throws IOException { return getUpdateDao().addCommentToAlert(request); }
@Override public Document addCommentToAlert(CommentAddRemoveRequest request) throws IOException { return getUpdateDao().addCommentToAlert(request); }
@Test public void addCommentShouldThrowExceptionOnMissingAlert() throws Exception { exception.expect(IOException.class); exception.expectMessage("Unable to add comment. Document with guid guid cannot be found."); CommentAddRemoveRequest request = new CommentAddRemoveRequest(); request.setGuid("guid"); getUpdateDao().addCommentToAlert(request, null); }