Package fitnesse.wiki

Examples of fitnesse.wiki.WikiPage


    Assert.assertEquals("system:runner", testSystemName);
  }

  @Test
  public void buildFullySpecifiedTestSystemNameForDebugRun() throws Exception {
    WikiPage testPage = WikiPageUtil.addPage(root, PathParser.parse("TestPage"),
            "!define TEST_SYSTEM {system}\n" +
                    "!define TEST_RUNNER {runner}\n");
    WikiPageDescriptor descriptor = new WikiPageDescriptor(testPage, true, false, "");
    MockClientBuilder clientBuilder = new MockClientBuilder(descriptor);
    String testSystemName = clientBuilder.getTestSystemName();
View Full Code Here


    Assert.assertEquals("system:runner", testSystemName);
  }

  @Test
  public void buildFullySpecifiedTestSystemNameAndIdentifierForDebugRun() throws Exception {
    WikiPage testPage = WikiPageUtil.addPage(root, PathParser.parse("TestPage"),
            "!define TEST_SYSTEM {system:A}\n" +
                    "!define TEST_RUNNER {runner}\n");
    WikiPageDescriptor descriptor = new WikiPageDescriptor(testPage, true, false, "");
    MockClientBuilder clientBuilder = new MockClientBuilder(descriptor);
    String testSystemName = clientBuilder.getTestSystemName();
View Full Code Here


  @Test
  public void testCommandPatternCSharp() throws Exception {
    String specifiedPageText = "!define COMMAND_PATTERN {%m -r fitSharp.Slim.Service.Runner,fitsharp.dll %p}\n";
    WikiPage specifiedPage = makeTestPage(specifiedPageText);
    WikiPageDescriptor descriptor = new WikiPageDescriptor(specifiedPage, false, false, "");
    MockClientBuilder clientBuilder = new MockClientBuilder(descriptor);
    assertEquals("%m -r fitSharp.Slim.Service.Runner,fitsharp.dll %p", join(clientBuilder.getCommandPattern()));

  }
View Full Code Here

  }

  @Test
  public void testCommandPatternCSharpWithDebug() throws Exception {
    String specifiedPageText = "!define COMMAND_PATTERN {%m -r fitSharp.Slim.Service.Runner,fitsharp.dll %p}\n";
    WikiPage specifiedPage = makeTestPage(specifiedPageText);
    WikiPageDescriptor descriptor = new WikiPageDescriptor(specifiedPage, false, true, "");
    MockClientBuilder clientBuilder = new MockClientBuilder(descriptor);
    assertEquals("%m -r fitSharp.Slim.Service.Runner,fitsharp.dll %p", join(clientBuilder.getCommandPattern()));
  }
View Full Code Here

  @Test
  public void testCommandPatternJava() throws Exception {

    String pageText = "!define TEST_SYSTEM {slim}\n";
    WikiPage page = makeTestPage(pageText);
    WikiPageDescriptor descriptor = new WikiPageDescriptor(page, false, false, "");
    MockClientBuilder clientBuilder = new MockClientBuilder(descriptor);
    String sep = System.getProperty("path.separator");
    String prefix = join(clientBuilder.getCommandPattern());
    assertTrue(prefix.contains("java"));
View Full Code Here

  }

  @Test
  public void testCommandPatternJavaWithDebug() throws Exception {
    String pageText = "!define TEST_SYSTEM {slim}\n";
    WikiPage page = makeTestPage(pageText);
    WikiPageDescriptor descriptor = new WikiPageDescriptor(page, false, true, "");
    MockClientBuilder clientBuilder = new MockClientBuilder(descriptor);
    String prefix = join(clientBuilder.getCommandPattern());
    assertTrue(prefix.contains("java"));
    assertTrue(prefix.contains(" -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -cp %p %m"));
View Full Code Here

  @Test
  public void testCommandPatternJavaWithDefinedCommands() {
    String specifiedPageText = "!define COMMAND_PATTERN {java -specialParam -cp %p %m}\n"
            + "!define REMOTE_DEBUG_COMMAND {java -remoteDebug -cp %p %m}";
    WikiPage specifiedPage = makeTestPage(specifiedPageText);

    Descriptor descriptor = new WikiPageDescriptor(specifiedPage, false, false, "");
    MockClientBuilder clientBuilder = new MockClientBuilder(descriptor);
    assertEquals("java -specialParam -cp %p %m", join(clientBuilder.getCommandPattern()));
View Full Code Here

  @Test
  public void testCommandPatternJavaWithDefinedCommandsWithDebug() {
    String specifiedPageText = "!define COMMAND_PATTERN {java -specialParam -cp %p %m}\n"
            + "!define REMOTE_DEBUG_COMMAND {java -remoteDebug -cp %p %m}";
    WikiPage specifiedPage = makeTestPage(specifiedPageText);

    Descriptor descriptor = new WikiPageDescriptor(specifiedPage, false, true, "");
    MockClientBuilder clientBuilder = new MockClientBuilder(descriptor);
    assertEquals("java -remoteDebug -cp %p %m", join(clientBuilder.getCommandPattern()));
  }
View Full Code Here

  @Test
  public void testCommandPatternWithVariable() throws Exception {
    String specifiedPageText = "!define COMMAND_PATTERN (${MY_RUNNER} %p %m)\n"
            + "!define MY_RUNNER {rubyslim}\n";
    WikiPage specifiedPage = makeTestPage(specifiedPageText);
    WikiPageDescriptor descriptor = new WikiPageDescriptor(specifiedPage, false, false, "");
    MockClientBuilder clientBuilder = new MockClientBuilder(descriptor);
    assertEquals("rubyslim %p %m", join(clientBuilder.getCommandPattern()));
  }
View Full Code Here

  @Test
  public void testTestRunnerWithVariable() throws Exception {
    String specifiedPageText = "!define TEST_RUNNER (${MY_RUNNER}.rb)\n"
            + "!define MY_RUNNER {rubyslim}\n";
    WikiPage specifiedPage = makeTestPage(specifiedPageText);
    WikiPageDescriptor descriptor = new WikiPageDescriptor(specifiedPage, false, false, "");
    MockClientBuilder clientBuilder = new MockClientBuilder(descriptor);
    assertEquals("rubyslim.rb", clientBuilder.getTestRunner());
  }
View Full Code Here

TOP

Related Classes of fitnesse.wiki.WikiPage

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.