Skip to content

Commit

Permalink
StepHarness needs a strict error policy for it to exercise what we wa…
Browse files Browse the repository at this point in the history
…nt in the tests.
  • Loading branch information
nedtwigg committed Jan 3, 2023
1 parent 6cd1eb4 commit f0b74d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public static StepHarness forSteps(FormatterStep... steps) {
.lineEndingsPolicy(LineEnding.UNIX.createPolicy())
.encoding(StandardCharsets.UTF_8)
.rootDir(Paths.get(""))
.exceptionPolicy(new FormatExceptionPolicyStrict())
.build());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public static StepHarnessWithFile forStep(ResourceHarness harness, FormatterStep
.lineEndingsPolicy(LineEnding.UNIX.createPolicy())
.steps(Collections.singletonList(step))
.rootDir(harness.rootFolder().toPath())
.exceptionPolicy(new FormatExceptionPolicyStrict())
.build());
}

Expand Down

0 comments on commit f0b74d8

Please sign in to comment.