@Test public void store() throws Exception { DbComment dbComment = new DbComment(); final RepositoryHandler repo = mock(RepositoryHandler.class); final CommentHandler commentHandler = new CommentHandler(repo); commentHandler.store(dbComment); verify(repo, times(1)).store(dbComment); }
public void store(DbComment comment) { repositoryHandler.store(comment); }
CommentHandler { public void store(DbComment comment) { repositoryHandler.store(comment); } }
CommentHandler { public void store(DbComment comment) { repositoryHandler.store(comment); } CommentHandler(final RepositoryHandler repositoryHandler); }
CommentHandler { public void store(DbComment comment) { repositoryHandler.store(comment); } CommentHandler(final RepositoryHandler repositoryHandler); void store(DbComment comment); List<DbComment> getComments(String entityId, String entityType); void store(String gavc,
                      String action,
                      String commentText,
                      DbCredential credential,
                      String entityType); DbComment getLatestComment(String entityId, String entityType); }
CommentHandler { public void store(DbComment comment) { repositoryHandler.store(comment); } CommentHandler(final RepositoryHandler repositoryHandler); void store(DbComment comment); List<DbComment> getComments(String entityId, String entityType); void store(String gavc,
                      String action,
                      String commentText,
                      DbCredential credential,
                      String entityType); DbComment getLatestComment(String entityId, String entityType);  }