@Test public void addShouldDelegateCallToRevisionController() throws Exception { expect(revisionController.add(filePath)).andReturn(new Results()); replay(revisionController); ADD.execute(revisionController, filePath); }
public R execute(RevisionController revisionController, String pagePath) { return execute(revisionController, pagePath, new HashMap<String, String>()); }
RevisionControlOperation { public R execute(RevisionController revisionController, String pagePath) { return execute(revisionController, pagePath, new HashMap<String, String>()); } }
RevisionControlOperation { public R execute(RevisionController revisionController, String pagePath) { return execute(revisionController, pagePath, new HashMap<String, String>()); } protected  RevisionControlOperation(String name, String query, String accessKey);  RevisionControlOperation(String name, String query, String accessKey, String description); }
RevisionControlOperation { public R execute(RevisionController revisionController, String pagePath) { return execute(revisionController, pagePath, new HashMap<String, String>()); } protected  RevisionControlOperation(String name, String query, String accessKey);  RevisionControlOperation(String name, String query, String accessKey, String description); WikiPageAction makeAction(String pageName); HtmlTag makeHtml(String resource); String getName(); String getQuery(); String getAccessKey(); String getDescription(); @Override String toString(); R execute(RevisionController revisionController, String pagePath); abstract R execute(RevisionController revisionController, String pagePath, Map<String, String> args); }
RevisionControlOperation { public R execute(RevisionController revisionController, String pagePath) { return execute(revisionController, pagePath, new HashMap<String, String>()); } protected  RevisionControlOperation(String name, String query, String accessKey);  RevisionControlOperation(String name, String query, String accessKey, String description); WikiPageAction makeAction(String pageName); HtmlTag makeHtml(String resource); String getName(); String getQuery(); String getAccessKey(); String getDescription(); @Override String toString(); R execute(RevisionController revisionController, String pagePath); abstract R execute(RevisionController revisionController, String pagePath, Map<String, String> args); static final RevisionControlOperation<Results> ADD; static final RevisionControlOperation<State> SYNC; static final RevisionControlOperation<NewRevisionResults> UPDATE; static final RevisionControlOperation<Results> CHECKOUT; static final RevisionControlOperation<NewRevisionResults> CHECKIN; static final RevisionControlOperation<Results> REVERT; static final RevisionControlOperation<StatusResults> STATUS; }