Added soft assertions

This commit is contained in:
Erik C. Thauvin 2024-10-28 10:13:14 -07:00
parent e2695625fd
commit 450c2df0f5
Signed by: erik
GPG key ID: 776702A6A2DA330E

View file

@ -16,6 +16,7 @@
package rife.bld.extension; package rife.bld.extension;
import org.assertj.core.api.AutoCloseableSoftAssertions;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import rife.bld.Project; import rife.bld.Project;
import rife.bld.blueprints.BaseProjectBlueprint; import rife.bld.blueprints.BaseProjectBlueprint;
@ -97,6 +98,7 @@ class TestNgOperationTest {
.xmlPathInJar("jarPath") .xmlPathInJar("jarPath")
.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) {
@ -105,7 +107,8 @@ class TestNgOperationTest {
break; break;
} }
} }
assertThat(found).as(p + " not found.").isTrue(); softly.assertThat(found).as(p + " not found.").isTrue();
}
} }
} }