01: // Copyright (C) 2003,2004,2005 by Object Mentor, Inc. All rights reserved.
02: // Released under the terms of the GNU General Public License version 2 or later.
03: package fitnesse.wiki;
04:
05: // TODO rename me
06: public class VirtualMockingPageCrawler extends
07: VirtualEnabledPageCrawler {
08: public WikiPage getPageAfterDeadEnd(WikiPage context,
09: WikiPagePath restOfPath, PageCrawler crawler)
10: throws Exception {
11: WikiPage page = super.getPageAfterDeadEnd(context, restOfPath,
12: crawler);
13: if (page == null)
14: page = MockingPageCrawler.createMockPage(restOfPath.last(),
15: context);
16:
17: return page;
18: }
19: }
|