Examples of OneFailingKoan


Examples of com.sandwich.koan.suite.OneFailingKoan

    assertSystemOutContains(Strings.getMessage("passing_suites")+": OnePassingKoan, OnePassingKoanDifferentName");
  }
 
  @Test
  public void failingSuites() throws Throwable {
    stubAllKoans(Arrays.asList(new OneFailingKoan(), new OneFailingKoanDifferentName()));
    new CommandLineArgumentRunner().run();
    assertSystemOutContains(Strings.getMessage("remaining_suites")+": OneFailingKoan, OneFailingKoanDifferentName");
  }
View Full Code Here

Examples of com.sandwich.koan.suite.OneFailingKoan

    assertSystemOutContains(Strings.getMessage("remaining_suites")+": OneFailingKoan, OneFailingKoanDifferentName");
  }
 
  @Test
  public void failingAndPassingSuites() throws Throwable {
    stubAllKoans(Arrays.asList(new OnePassingKoan(), new OneFailingKoan()));
    new CommandLineArgumentRunner().run();
    assertSystemOutContains(Strings.getMessage("passing_suites")+": OnePassingKoan"+EOL+
        Strings.getMessage("remaining_suites")+": OneFailingKoan");
  }
View Full Code Here

Examples of com.sandwich.koan.suite.OneFailingKoan

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

Examples of com.sandwich.koan.suite.OneFailingKoan

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

Examples of com.sandwich.koan.suite.OneFailingKoan

    assertSystemOutContains(sb.toString());
  }
 
  @Test
  public void whatWentWrongExplanation() throws Throwable {
    stubAllKoans(Arrays.asList(new OneFailingKoan()));
    new CommandLineArgumentRunner().run();
    assertSystemOutContains(new StringBuilder(
        Strings.getMessage("what_went_wrong")).append(
        ": ").append(
        EOL).append(
View Full Code Here

Examples of com.sandwich.koan.suite.OneFailingKoan

    assertSystemOutContains(PASSING_SUITES+" OnePassingKoan, OnePassingKoanDifferentName");
  }
 
  @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

Examples of com.sandwich.koan.suite.OneFailingKoan

    assertSystemOutContains(FAILING_SUITES+" OneFailingKoan, OneFailingKoanDifferentName");
  }
 
  @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

Examples of com.sandwich.koan.suite.OneFailingKoan

    assertSystemOutContains(sb.toString());
  }
 
  @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
View Full Code Here

Examples of com.sandwich.koan.suite.OneFailingKoan

    assertSystemOutContains(sb.toString());
  }
 
  @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
View Full Code Here

Examples of com.sandwich.koan.suite.OneFailingKoan

    assertSystemOutContains(sb.toString());
  }
 
  @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
Copyright © 2018 www.massapi.com. 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.