Fixed BaseProjectBlueprint init in tests
This commit is contained in:
parent
48952f505f
commit
99691fb2e9
1 changed files with 4 additions and 4 deletions
|
@ -245,7 +245,7 @@ class DetektOperationTest {
|
||||||
|
|
||||||
var op = new DetektOperation()
|
var op = new DetektOperation()
|
||||||
.fromProject(new BaseProjectBlueprint(new File("examples"), "com.example",
|
.fromProject(new BaseProjectBlueprint(new File("examples"), "com.example",
|
||||||
"Example"))
|
"example", "Example"))
|
||||||
.baseline(baseline)
|
.baseline(baseline)
|
||||||
.createBaseline(true);
|
.createBaseline(true);
|
||||||
op.execute();
|
op.execute();
|
||||||
|
@ -260,7 +260,7 @@ class DetektOperationTest {
|
||||||
void testExampleMaxIssues() {
|
void testExampleMaxIssues() {
|
||||||
var op = new DetektOperation()
|
var op = new DetektOperation()
|
||||||
.fromProject(new BaseProjectBlueprint(new File("examples"), "com.example",
|
.fromProject(new BaseProjectBlueprint(new File("examples"), "com.example",
|
||||||
"Example"))
|
"example", "Example"))
|
||||||
.maxIssues(8);
|
.maxIssues(8);
|
||||||
assertThatNoException().isThrownBy(op::execute);
|
assertThatNoException().isThrownBy(op::execute);
|
||||||
}
|
}
|
||||||
|
@ -277,7 +277,7 @@ class DetektOperationTest {
|
||||||
|
|
||||||
var op = new DetektOperation()
|
var op = new DetektOperation()
|
||||||
.fromProject(new BaseProjectBlueprint(new File("examples"), "com.example",
|
.fromProject(new BaseProjectBlueprint(new File("examples"), "com.example",
|
||||||
"Example"))
|
"example", "Example"))
|
||||||
.report(new Report(ReportId.HTML, html.getAbsolutePath()))
|
.report(new Report(ReportId.HTML, html.getAbsolutePath()))
|
||||||
.report(new Report(ReportId.XML, xml.getAbsolutePath()))
|
.report(new Report(ReportId.XML, xml.getAbsolutePath()))
|
||||||
.report(new Report(ReportId.TXT, txt.getAbsolutePath()))
|
.report(new Report(ReportId.TXT, txt.getAbsolutePath()))
|
||||||
|
@ -295,7 +295,7 @@ class DetektOperationTest {
|
||||||
void testExamplesExecute() {
|
void testExamplesExecute() {
|
||||||
var op = new DetektOperation()
|
var op = new DetektOperation()
|
||||||
.fromProject(new BaseProjectBlueprint(new File("examples"), "com.example",
|
.fromProject(new BaseProjectBlueprint(new File("examples"), "com.example",
|
||||||
"Example"))
|
"example", "Example"))
|
||||||
.debug(true);
|
.debug(true);
|
||||||
assertThatThrownBy(op::execute).isInstanceOf(ExitStatusException.class);
|
assertThatThrownBy(op::execute).isInstanceOf(ExitStatusException.class);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue