Skip to content

Commit 07b7e75

Browse files
committed
To be honest - that was a pretty dumb way of loading a file...
1 parent 055b6a5 commit 07b7e75

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/test/java/org/utplsql/cli/RunCommandCoverageReporterIT.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,9 @@ public void run_CodeCoverageWithIncludeAndExclude() throws Exception {
9090
RunCommand runCmd = RunCommandTestHelper.createRunCommand(RunCommandTestHelper.getConnectionString(),
9191
"-f=ut_coverage_html_reporter", "-o=" + coveragePath, "-s", "-exclude=app.award_bonus,app.betwnstr");
9292

93-
9493
int result = runCmd.run();
9594

96-
String content = new Scanner(coveragePath).useDelimiter("\\Z").next();
95+
String content = new String(Files.readAllBytes(coveragePath));
9796

9897
assertEquals(true, hasCoverageListed(content, "app.remove_rooms_by_name"));
9998
assertEquals(false, hasCoverageListed(content, "app.award_bonus"));

0 commit comments

Comments
 (0)