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.updates;
04:
05: import fitnesse.wiki.*;
06:
07: public class VirtualWikiDepricationUpdateTest extends
08: AbstractUpdateTestCase {
09: protected Update makeUpdate() {
10: return new VirtualWikiDeprecationUpdate(updater);
11: }
12:
13: public void testDoVisiting() throws Exception {
14: WikiPage page = crawler.addPage(root, PathParser
15: .parse("SomePage"), "!virtualwiki http://some.url");
16: PageTraversingUpdate update2 = (PageTraversingUpdate) update;
17: update2.processPage(page);
18:
19: PageData data = page.getData();
20: assertEquals(
21: "http://some.url",
22: data
23: .getAttribute(WikiPageProperties.VIRTUAL_WIKI_ATTRIBUTE));
24: }
25: }
|