Corrects condition

上级 8b92bc6b
......@@ -25,6 +25,7 @@ package domainapp.integtests.bootstrap;
import org.apache.isis.core.commons.config.IsisConfiguration;
import org.apache.isis.core.integtestsupport.IsisSystemForTest;
import org.apache.isis.objectstore.jdo.datanucleus.DataNucleusPersistenceMechanismInstaller;
import org.apache.isis.objectstore.jdo.datanucleus.IsisConfigurationForJdoIntegTests;
/**
......@@ -50,6 +51,7 @@ public final class SimpleAppSystemInitializer {
public SimpleAppSystemBuilder() {
with(testConfiguration());
with(new DataNucleusPersistenceMechanismInstaller());
// services annotated with @DomainService
withServicesIn("domainapp");
......
......@@ -124,9 +124,7 @@ public class SimpleObjectsIntegTest extends SimpleAppIntegTest {
@SuppressWarnings("UnstableApiUsage")
protected boolean matchesSafely(Throwable item) {
final var causalChain = Throwables.getCausalChain(item);
return causalChain.stream()
.map(Throwable::getClass)
.allMatch(cls::isAssignableFrom);
return causalChain.stream().map(Throwable::getClass).anyMatch(cls::isAssignableFrom);
}
@Override
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册