Corrects condition
This commit is contained in:
parent
8b92bc6bb6
commit
134ccdb5a1
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user