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 java.io.File;
06: import fitnesse.wiki.PathParser;
07:
08: public class UpdaterTest extends AbstractUpdateTestCase {
09:
10: public void setUp() throws Exception {
11: super .setUp();
12: Updater.testing = true;
13: crawler.addPage(root, PathParser.parse("PageOne"));
14: }
15:
16: public void testProperties() throws Exception {
17: File file = new File(testDir + File.separator + rootName
18: + File.separator + "properties");
19: assertFalse(file.exists());
20: Updater updater = new Updater(context);
21: updater.updates = new Update[] {};
22: updater.update();
23: assertTrue(file.exists());
24: }
25:
26: }
|