Package org.jbehave.core.result

Examples of org.jbehave.core.result.Result


            out.println();
            out.println("Used mocks: " + usedMocks.size());
            out.println();
            int count = 1;
            for (Iterator i = usedMocks.iterator(); i.hasNext(); count++) {
                Result result =  (Result) i.next();
                printResult(count, result);
            }
            out.println();
        }
    }
View Full Code Here


      }
      };
    }

    public void shouldRenderSuccessSymbolForSuccess() throws Exception {
        listener.gotResult(new Result("shouldSucceed", "Container", Result.SUCCEEDED));
        ensureThat(writer, contains(Result.SUCCEEDED));
    }
View Full Code Here

        listener.gotResult(new Result("shouldSucceed", "Container", Result.SUCCEEDED));
        ensureThat(writer, contains(Result.SUCCEEDED));
    }

    public void shouldRenderFailureSymbolForFailure() throws Exception {
        listener.gotResult(new Result("shouldFail", "Container", Result.FAILED));
        ensureThat(writer, contains(Result.FAILED));
    }
View Full Code Here

        listener.gotResult(new Result("shouldFail", "Container", Result.FAILED));
        ensureThat(writer, contains(Result.FAILED));
    }

    public void shouldRenderPendingSymbolForPending() throws Exception {
        listener.gotResult(new Result("shouldBePending", "Container", new PendingException()));
        ensureThat(writer, contains(Result.PENDING));
    }
View Full Code Here

        ensureThat(writer, contains(Result.PENDING));
    }

    public void shouldSummarizeSingleSuccessfulResult() throws Exception {
        // given...
        Result succeeded = newSuccessResult();
       
        // when...
        listener.gotResult(succeeded);
        listener.printReport();
       
View Full Code Here

        ensureThat(writer, contains("\nTotal: 1"));
    }

    public void shouldSummarizeTwoSuccessfulResults() throws Exception {
        // given...
        Result succeeded = newSuccessResult();
       
        // when...
        listener.gotResult(succeeded);
        listener.gotResult(succeeded);
        listener.printReport();
View Full Code Here

        ensureThat(writer, contains("\nTotal: 2"));
    }
   
    public void shouldPrintSummaryForFailure() throws Exception {
        // given...
        Result failed = newFailureResult();
       
        // when...
        listener.gotResult(failed);
        listener.printReport();
       
View Full Code Here

        ensureThat(writer, contains("\nTotal: 1. Failures: 1."));
    }
   
    public void shouldSummarizePendingResult() throws Exception {
        // given...
        Result pending = newPendingResult();
       
        // when...
        listener.gotResult(pending);
        listener.printReport();
       
View Full Code Here

        return new BehaviourMethodResult(shouldDoSomething, new PendingException());
    }

    public void shouldPrintStackTraceForFailure() throws Exception {
        // given...
        Result failed = newFailureResult();
        listener.gotResult(failed);

        // when...
        listener.printReport();
View Full Code Here

        ensureThat(writer, contains("VerificationException"));
    }

    public void shouldPrintShortBehaviourClassNameForPending() throws Exception {
        // given...
        Result pending = new PendingResult(shouldDoSomething);
        listener.gotResult(pending);

        // when...
        listener.printReport();
View Full Code Here

TOP

Related Classes of org.jbehave.core.result.Result

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.