SuiteExporterArgumentsTest.java :  » Testing » StoryTestIQ » fitnesse » Java Open Source

Java Open Source » Testing » StoryTestIQ 
StoryTestIQ » fitnesse » SuiteExporterArgumentsTest.java
// Copyright (C) 2003,2004,2005 by Object Mentor, Inc. All rights reserved.
// Released under the terms of the GNU General Public License version 2 or later.
package fitnesse;

import junit.framework.TestCase;

public class SuiteExporterArgumentsTest extends TestCase {
  
  private SuiteExporterArguments args;

  public void setUp() throws Exception {
    args = new SuiteExporterArguments();
  }
  public void testArgumentsDefaults() throws Exception {
    assertEquals(80, args.getPort());
    assertEquals(".", args.getRootPath());
    assertEquals("FitNesseRoot", args.getRootDirectory());
    assertEquals(null, args.getLogDirectory());
    assertEquals(false, args.isOmittingUpdates());
    assertEquals(14, args.getDaysTillVersionsExpire());
    assertEquals(null, args.getUserpass());
  }

  public void testSuiteWikiPagePath() throws Exception {
    String pagePath = "IntegrationTests";

    args.setSuiteWikiPagePath(pagePath);
    assertEquals(pagePath, args.getSuiteWikiPagePath());
  }

  public void testOutputDir() throws Exception {
    String outputDir = "testDir";

    args.setOutputDir(outputDir);
    assertEquals(outputDir, args.getOutputDir());
  }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.