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;
04:
05: import junit.framework.TestCase;
06:
07: public class SuiteExporterArgumentsTest extends TestCase {
08:
09: private SuiteExporterArguments args;
10:
11: public void setUp() throws Exception {
12: args = new SuiteExporterArguments();
13: }
14:
15: public void testArgumentsDefaults() throws Exception {
16: assertEquals(80, args.getPort());
17: assertEquals(".", args.getRootPath());
18: assertEquals("FitNesseRoot", args.getRootDirectory());
19: assertEquals(null, args.getLogDirectory());
20: assertEquals(false, args.isOmittingUpdates());
21: assertEquals(14, args.getDaysTillVersionsExpire());
22: assertEquals(null, args.getUserpass());
23: }
24:
25: public void testSuiteWikiPagePath() throws Exception {
26: String pagePath = "IntegrationTests";
27:
28: args.setSuiteWikiPagePath(pagePath);
29: assertEquals(pagePath, args.getSuiteWikiPagePath());
30: }
31:
32: public void testOutputDir() throws Exception {
33: String outputDir = "testDir";
34:
35: args.setOutputDir(outputDir);
36: assertEquals(outputDir, args.getOutputDir());
37: }
38: }
|