public Response makeResponse(FitNesseContext context, Request request) { this.context = context; WikiPage root = context.root; WikiPage page = root.getPageCrawler().getPage(PathParser.parse(request.getResource())); SuiteFilter filter = TestResponder.createSuiteFilter(request, page.getPageCrawler().getFullPath().toString()); SuiteContentsFinder suiteTestFinder = new SuiteContentsFinder(page, filter, root); List<WikiPage> pagelist = suiteTestFinder.makePageList(); SuiteOverviewTree treeview = new SuiteOverviewTree(pagelist); treeview.findLatestResults(context.getTestHistoryDirectory()); treeview.countResults(); WikiPagePath path = PathParser.parse(request.getResource()); SimpleResponse response = makeResponse(treeview, path, request); return response; }
protected List<WikiPage> getPagesToRun() { SuiteFilter filter = createSuiteFilter(request, page.getPageCrawler().getFullPath().toString()); SuiteContentsFinder suiteTestFinder = new SuiteContentsFinder(page, filter, root); return suiteTestFinder.getAllPagesToRunForThisSuite(); }