default report location determined by location of jbehave jar

Description

StoryReporterBuilder has an instance field outputLocationClass which is, by default, defined to be the StoryReporterBuilder.class object. This is then passed into a StoryLocation object as part of a FilePrintStreamFactory constructor. StoryLocation uses the class object to convert to a URL. Thus we are using the location of jar as the default reporting location.

StoryLocation should just take a URL in its constructor, not a class.

StoryReporterBuilder should have either use the outputDirectory.toURI().toURL() as the URL to pass in or setup a default of new File(".") (current working directory) in order to pass into StoryLocation. outputLocationClass should be removed.

Activity

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Created June 10, 2010 at 1:05 PM
Updated May 29, 2015 at 1:07 PM
Resolved July 9, 2010 at 4:25 PM

Flag notifications