Package fitnesse.wiki.fs

Examples of fitnesse.wiki.fs.FileSystemPageFactory


import fitnesse.wiki.fs.FileSystemPageFactory;

public class FileSystemPageSetUp extends Fixture {

  public FileSystemPageSetUp() throws Exception {
    FitnesseFixtureContext.root = new FileSystemPageFactory().makePage(new File(FitnesseFixtureContext.baseDir), "RooT", null);
  }
View Full Code Here


  }

  private void CreateExternalRoot() throws Exception {
    FileUtil.createDir("testDir");
    FileUtil.createDir("testDir/ExternalRoot");
    externalRoot = new FileSystemPageFactory().makePage(new File("testDir/ExternalRoot"), "ExternalRoot", null);
    WikiPage externalPageOne = WikiPageUtil.addPage(externalRoot, PathParser.parse("ExternalPageOne"), "external page one");
    WikiPageUtil.addPage(externalPageOne, PathParser.parse("ExternalChild"), "external child");
    WikiPageUtil.addPage(externalRoot, PathParser.parse("ExternalPageTwo"), "external page two");

    symPage = new SymbolicPage("SymPage", externalRoot, pageOne);
View Full Code Here

  protected FitNesseContext context;

  @Before
  public void setUp() throws Exception {
    testDir = testRoot.newFolder("TestDir");
    root = new FileSystemPageFactory().makePage(testDir, rootName, null);
    context = FitNesseUtil.makeTestContext(root, testRoot.getRoot().getPath(), testDir.getName(), 0);

    pageOne = WikiPageUtil.addPage(root, PathParser.parse("PageOne"), "some content");
    pageTwo = WikiPageUtil.addPage(pageOne, PathParser.parse("PageTwo"), "page two content");
View Full Code Here

  @Before
  public void setUp() {
    FileSystem fileSystem = new MemoryFileSystem();
    MemoryVersionsController memoryVersionsController = new MemoryVersionsController(fileSystem);
    wikiPageFactory = new FileSystemPageFactory(fileSystem, memoryVersionsController, new SystemVariableSource());
  }
View Full Code Here

    return root;
  }

  private void setTheContext(String name) {
    FileUtil.makeDir(testDir);
    root = new FileSystemPageFactory().makePage(new File(testDir), name, null);
    root.commit(root.getData());
    context = FitNesseUtil.makeTestContext(root, testDir, name, 80);
  }
View Full Code Here

  @Before
  public void setUp() throws Exception {
    testProperties = new Properties();
    responderFactory = new ResponderFactory(".");
    testProvider = new SymbolProvider(new SymbolType[] {});
    testWikiPageFactoryRegistry = new FileSystemPageFactory();
    testSlimTableFactory = new SlimTableFactory();
    testCustomComparatorsRegistry = new CustomComparatorRegistry();
    testTestSystemFactory = new MultipleTestSystemFactory(testSlimTableFactory, testCustomComparatorsRegistry);
    loader = new PluginsLoader(new ComponentFactory(testProperties));
View Full Code Here

  @Test
  public void testWikiPageFactoryCreation() throws Exception {
    testProperties.setProperty(ConfigurationParameter.WIKI_PAGE_FACTORIES.getKey(), FooWikiPageFactory.class.getName());

    FileSystemPageFactory wikiPageFactory = mock(FileSystemPageFactory.class);
    loader.loadWikiPageFactories(wikiPageFactory);
    verify(wikiPageFactory).registerWikiPageFactory(any(FooWikiPageFactory.class));
  }
View Full Code Here

TOP

Related Classes of fitnesse.wiki.fs.FileSystemPageFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.