Skip to content

Commit

Permalink
Fixed BaseProjectBlueprint init in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ethauvin committed Jan 14, 2025
1 parent 48952f5 commit 99691fb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/test/java/rife/bld/extension/DetektOperationTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ void testExampleBaseline() throws IOException, ExitStatusException, InterruptedE

var op = new DetektOperation()
.fromProject(new BaseProjectBlueprint(new File("examples"), "com.example",
"Example"))
"example", "Example"))
.baseline(baseline)
.createBaseline(true);
op.execute();
Expand All @@ -260,7 +260,7 @@ void testExampleBaseline() throws IOException, ExitStatusException, InterruptedE
void testExampleMaxIssues() {
var op = new DetektOperation()
.fromProject(new BaseProjectBlueprint(new File("examples"), "com.example",
"Example"))
"example", "Example"))
.maxIssues(8);
assertThatNoException().isThrownBy(op::execute);
}
Expand All @@ -277,7 +277,7 @@ void testExampleReports() throws IOException {

var op = new DetektOperation()
.fromProject(new BaseProjectBlueprint(new File("examples"), "com.example",
"Example"))
"example", "Example"))
.report(new Report(ReportId.HTML, html.getAbsolutePath()))
.report(new Report(ReportId.XML, xml.getAbsolutePath()))
.report(new Report(ReportId.TXT, txt.getAbsolutePath()))
Expand All @@ -295,7 +295,7 @@ void testExampleReports() throws IOException {
void testExamplesExecute() {
var op = new DetektOperation()
.fromProject(new BaseProjectBlueprint(new File("examples"), "com.example",
"Example"))
"example", "Example"))
.debug(true);
assertThatThrownBy(op::execute).isInstanceOf(ExitStatusException.class);
}
Expand Down

0 comments on commit 99691fb

Please sign in to comment.