protected void beforeRequest() {
setParameter("fileId", "1");
}
protected void invokeApplication() throws Exception {
DocumentHistory docHistory = (DocumentHistory)getInstance(DocumentHistory.class);
docHistory.init();
List<WikiFile> historicalFileList = docHistory.getHistoricalFileList();
WikiFile selected = historicalFileList.get(1);
assert selected.getHistoricalFileId().equals(2l);
docHistory.setSelectedHistoricalFile(selected);
WikiFile selectedHistoricalFile = docHistory.getSelectedHistoricalFile();
assert selectedHistoricalFile.getHistoricalFileId().equals(selected.getHistoricalFileId());
assert selectedHistoricalFile.getId().equals(1l);
assert selectedHistoricalFile.getRevision() == 1;
}
protected void renderResponse() throws Exception {
DocumentHistory docHistory = (DocumentHistory)getInstance(DocumentHistory.class);
}
}.run();
}