File tree 1 file changed +3
-3
lines changed
core/src/test/java/io/cucumber/core/plugin
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ void creates_parent_directories() {
91
91
}
92
92
93
93
@ Test
94
- void cant_create_plugin_when_parent_directory_is_a_file () {
94
+ void cant_create_plugin_when_parent_directory_is_a_file () throws IOException {
95
95
Path htmlReport = tmp .resolve ("target/cucumber/reports" );
96
96
PluginOption htmlOption = parse ("html:" + htmlReport );
97
97
plugin = fc .create (htmlOption );
@@ -101,8 +101,8 @@ void cant_create_plugin_when_parent_directory_is_a_file() {
101
101
102
102
IllegalArgumentException exception = assertThrows (IllegalArgumentException .class , () -> fc .create (jsonOption ));
103
103
assertThat (exception .getMessage (), is (equalTo (
104
- "Couldn't create parent directories of '" + jsonReport + "'.\n " +
105
- "Make sure the the parent directory '" + jsonReport .getParent () + "' isn't a file.\n " +
104
+ "Couldn't create parent directories of '" + jsonReport . toFile (). getCanonicalPath () + "'.\n " +
105
+ "Make sure the the parent directory '" + jsonReport .getParent (). toFile (). getCanonicalPath () + "' isn't a file.\n " +
106
106
"\n " +
107
107
"Note: This usually happens when plugins write to colliding paths.\n " +
108
108
"For example: 'html:target/cucumber, json:target/cucumber/report.json'\n " +
You can’t perform that action at this time.
0 commit comments