StoryReporter.restartedStory() is printed on a Closed Stream in PrintStreamOutput Class

Description

After a Story is restarted, StoryReporter.restartedStory() call is made after StoryReporter.afterStory() is invoked.

This results in a Closed stream for non System.out based OutputStreams.

As a result of this issue, is not possible to know that Story has been restarted, other than looking the System.out stream.

A Maven project that demostrates this (while debugging!), has been created at https://github.com/rjimgal/jbehave-stream-closed

Assignee

Unassigned

Reporter

RafaelJ

Labels

None

Fix versions

Priority

Major
Configure