Skip to content

Commit

Permalink
JBEHAVE-802: Some template-generated reports are invalid.
Browse files Browse the repository at this point in the history
removed debug output and a few tabs
  • Loading branch information
alexlehm committed Jul 27, 2012
1 parent 174380b commit 73deb6b
Showing 1 changed file with 9 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@ public void shouldReportEventsToXmlOutput() throws IOException, SAXException {

// will throw SAXException if the xml file is not well-formed
XMLUnit.buildTestDocument(out);

System.out.println(file);
System.out.println(out);
assertThatOutputIs(out, expected);
}

Expand Down Expand Up @@ -110,21 +107,21 @@ public static void narrateAnInterestingStory(StoryReporter reporter, boolean wit
if (withFailure) {
reporter.failed("Then I should have a balance of $30", new Exception("Expected <30> got <25>"));
} else {
reporter.pending("Then I should have a balance of $30");
reporter.pending("Then I should have a balance of $30");
}
reporter.afterExamples();
reporter.afterScenario();
reporter.storyCancelled(story, new StoryDuration(2, 1));
String method1="@When(\"something \\\"$param\\\"\")\n"
+ "@Pending\n"
+ "public void whenSomething() {\n"
+ " // PENDING\n"
+ "}\n";
+ "@Pending\n"
+ "public void whenSomething() {\n"
+ " // PENDING\n"
+ "}\n";
String method2="@Then(\"something is <param1>\")\n"
+ "@Pending\n"
+ "public void thenSomethingIsParam1() {\n"
+ " // PENDING\n"
+ "}\n";
+ "@Pending\n"
+ "public void thenSomethingIsParam1() {\n"
+ " // PENDING\n"
+ "}\n";
reporter.pendingMethods(asList(method1, method2));
reporter.afterStory(givenStory);
}
Expand Down

0 comments on commit 73deb6b

Please sign in to comment.