Added soft assertions
This commit is contained in:
parent
0429bbec0a
commit
41169b88d9
1 changed files with 10 additions and 7 deletions
|
@ -16,6 +16,7 @@
|
||||||
|
|
||||||
package rife.bld.extension;
|
package rife.bld.extension;
|
||||||
|
|
||||||
|
import org.assertj.core.api.AutoCloseableSoftAssertions;
|
||||||
import org.junit.jupiter.api.BeforeAll;
|
import org.junit.jupiter.api.BeforeAll;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import rife.bld.BaseProject;
|
import rife.bld.BaseProject;
|
||||||
|
@ -90,6 +91,7 @@ class CheckstyleOperationTest {
|
||||||
.treeWithJavadoc(true)
|
.treeWithJavadoc(true)
|
||||||
.executeConstructProcessCommandList();
|
.executeConstructProcessCommandList();
|
||||||
|
|
||||||
|
try (var softly = new AutoCloseableSoftAssertions()) {
|
||||||
for (var p : args) {
|
for (var p : args) {
|
||||||
var found = false;
|
var found = false;
|
||||||
for (var a : params) {
|
for (var a : params) {
|
||||||
|
@ -98,7 +100,8 @@ class CheckstyleOperationTest {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
assertThat(found).as(p + " not found.").isTrue();
|
softly.assertThat(found).as(p + " not found.").isTrue();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue