Package fitnesse.wiki

Examples of fitnesse.wiki.WikiPagePath


    properties.set(pageType.toString());
    return properties;
  }

  private boolean isErrorLogsPage() {
    WikiPagePath pagePath = getPageCrawler().getFullPath();
    return ErrorLogName.equals(pagePath.getFirst());
  }
View Full Code Here


  private boolean autoUpdateSetting = true;
  private Exception caughtException;

  public WikiImporter() {
    importerClient = new NullWikiImporterClient();
    localPath = new WikiPagePath();
  }
View Full Code Here

    localPath = new WikiPagePath();
  }

  public WikiImporter(WikiImporterClient client) {
    importerClient = client;
    localPath = new WikiPagePath();
  }
View Full Code Here

      removeOrphans(page);
  }

  private void removeOrphans(WikiPage context) {
    for (WikiPagePath orphan : orphans) {
      WikiPagePath path = orphan;
      WikiPage wikiPage = context.getPageCrawler().getPage(path);
      if (wikiPage != null)
        wikiPage.getParent().removeChildPage(wikiPage.getName());
    }
  }
View Full Code Here

    }
  }

  private void filterOrphans(WikiPage context) {
    for (WikiPagePath aPageCatalog : pageCatalog) {
      WikiPagePath wikiPagePath = aPageCatalog;
      WikiPage unrecognizedPage = context.getPageCrawler().getPage(wikiPagePath);
      PageData data = unrecognizedPage.getData();
      WikiImportProperty importProps = WikiImportProperty.createFrom(data.getProperties());

      if (importProps != null && !importProps.isRoot()) {
View Full Code Here

  private void catalogLocalTree(WikiPage page) {
    contextPath = page.getPageCrawler().getFullPath();
    pageCatalog = new HashSet<WikiPagePath>();
    page.getPageCrawler().traverse(this);
    WikiPagePath relativePathOfContext = contextPath.subtractFromFront(contextPath);
    pageCatalog.remove(relativePathOfContext);
  }
View Full Code Here

  public List<WikiPagePath> getOrphans() {
    return orphans;
  }

  public void process(WikiPage page) {
    WikiPagePath relativePath = relativePath(page);
    pageCatalog.add(relativePath);
  }
View Full Code Here

    return null;
  }

  public String getLocalPageName() {
    if (page != null) {
      WikiPagePath localPagePath = page.getPageCrawler().getFullPath();
      return PathParser.render(localPagePath);
    }
    return null;
  }
View Full Code Here

    timeMeasurement = new TimeMeasurement().start();
  }

  @Override
  public void testComplete(WikiTestPage test, TestSummary testSummary) {
    LOG.info(new WikiPagePath(test.getSourcePage()).toString() + " r " + testSummary.getRight() + " w "
        + testSummary.getWrong() + " " + testSummary.getExceptions()
        + " " + timeMeasurement.elapsedSeconds() + " seconds");
  }
View Full Code Here

    }
    return new SuiteContentsFinder(suiteRoot, new fitnesse.testrunner.SuiteFilter(suiteFilter, excludeSuiteFilter), context.root).getAllPagesToRunForThisSuite();
  }

  private WikiPage getSuiteRootPage(String suiteName, FitNesseContext context) {
    WikiPagePath path = PathParser.parse(suiteName);
    PageCrawler crawler = context.root.getPageCrawler();
    return crawler.getPage(path);
  }
View Full Code Here

TOP

Related Classes of fitnesse.wiki.WikiPagePath

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.