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 UpdateTest {
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/RooT/properties");
18: assertFalse(file.exists());
19: Updater updater = new Updater(context);
20: updater.updates = new Update[] {};
21: updater.update();
22: assertTrue(file.exists());
23: }
24: }
|