Package com.sandwich.koan.cmdline

Examples of com.sandwich.koan.cmdline.CommandLineArgumentRunner


  }
 
  @Test
  public void passingSuites() throws Throwable {
    stubAllKoans(Arrays.asList(new OnePassingKoan(), new OnePassingKoanDifferentName()));
    new CommandLineArgumentRunner().run();
    assertSystemOutContains(PASSING_SUITES+" OnePassingKoan, OnePassingKoanDifferentName");
  }
View Full Code Here


  }
 
  @Test
  public void failingSuites() throws Throwable {
    stubAllKoans(Arrays.asList(new OneFailingKoan(), new OneFailingKoanDifferentName()));
    new CommandLineArgumentRunner().run();
    assertSystemOutContains(FAILING_SUITES+" OneFailingKoan, OneFailingKoanDifferentName");
  }
View Full Code Here

  }
 
  @Test
  public void failingAndPassingSuites() throws Throwable {
    stubAllKoans(Arrays.asList(new OnePassingKoan(), new OneFailingKoan()));
    new CommandLineArgumentRunner().run();
    assertSystemOutContains(PASSING_SUITES+" OnePassingKoan"+EOL+
                FAILING_SUITES+" OneFailingKoan");
  }
View Full Code Here

  }
 
  @Test
  public void progressAllPassing() throws Throwable {
    stubAllKoans(Arrays.asList(new OnePassingKoan()));
    new CommandLineArgumentRunner().run();
    StringBuilder sb = new StringBuilder(PROGRESS).append(" ")
                  .append(PROGRESS_BAR_START);
    for(int i = 0; i < PROGRESS_BAR_WIDTH; i++){ // 100% success
      sb.append(COMPLETE_CHAR);
    }
View Full Code Here

  }
 
  @Test
  public void progressAllFailing() throws Throwable {
    stubAllKoans(Arrays.asList(new OneFailingKoan(), new OneFailingKoanDifferentName()));
    new CommandLineArgumentRunner().run();
    StringBuilder sb = new StringBuilder(
        PROGRESS).append(" ").append(
        PROGRESS_BAR_START);
    for(int i = 0; i < PROGRESS_BAR_WIDTH; i++){ // 100% failed
      sb.append(INCOMPLETE_CHAR);
View Full Code Here

  }
 
  @Test
  public void progressFiftyFifty() throws Throwable {
    stubAllKoans(Arrays.asList(new OnePassingKoan(), new OneFailingKoan()));
    new CommandLineArgumentRunner().run();
    StringBuilder sb = new StringBuilder(
        PROGRESS).append(" ").append(
        PROGRESS_BAR_START);
    for(int i = 0; i < PROGRESS_BAR_WIDTH / 2; i++){ // 50% succeeded
      sb.append(COMPLETE_CHAR);
View Full Code Here

  }
 
  @Test
  public void whatWentWrongExplanation() throws Throwable {
    stubAllKoans(Arrays.asList(new OneFailingKoan()));
    new CommandLineArgumentRunner().run();
    assertSystemOutContains(new StringBuilder(
        WHATS_WRONG).append(
        EOL).append(
        "expected:<true> but was:<false>").toString());
  }
View Full Code Here

TOP

Related Classes of com.sandwich.koan.cmdline.CommandLineArgumentRunner

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.