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: import junit.framework.TestCase;
06: import fitnesse.testutil.*;
07:
08: public class ExtendableWikiPageTest extends TestCase {
09: public void testAddExtention() throws Exception {
10: Extension e = new SimpleExtension();
11: WikiPage page = new MockExtendableWikiPage(e);
12:
13: assertFalse(page.hasExtension("blah"));
14: assertEquals(null, page.getExtension("blah"));
15:
16: assertTrue(page.hasExtension(e.getName()));
17: assertSame(e, page.getExtension(e.getName()));
18: }
19: }
|