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.commons.config.IsisConfiguration;
|
||||||
import org.apache.isis.core.integtestsupport.IsisSystemForTest;
|
import org.apache.isis.core.integtestsupport.IsisSystemForTest;
|
||||||
|
import org.apache.isis.objectstore.jdo.datanucleus.DataNucleusPersistenceMechanismInstaller;
|
||||||
import org.apache.isis.objectstore.jdo.datanucleus.IsisConfigurationForJdoIntegTests;
|
import org.apache.isis.objectstore.jdo.datanucleus.IsisConfigurationForJdoIntegTests;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -50,6 +51,7 @@ public final class SimpleAppSystemInitializer {
|
|||||||
|
|
||||||
public SimpleAppSystemBuilder() {
|
public SimpleAppSystemBuilder() {
|
||||||
with(testConfiguration());
|
with(testConfiguration());
|
||||||
|
with(new DataNucleusPersistenceMechanismInstaller());
|
||||||
|
|
||||||
// services annotated with @DomainService
|
// services annotated with @DomainService
|
||||||
withServicesIn("domainapp");
|
withServicesIn("domainapp");
|
||||||
|
@ -124,9 +124,7 @@ public class SimpleObjectsIntegTest extends SimpleAppIntegTest {
|
|||||||
@SuppressWarnings("UnstableApiUsage")
|
@SuppressWarnings("UnstableApiUsage")
|
||||||
protected boolean matchesSafely(Throwable item) {
|
protected boolean matchesSafely(Throwable item) {
|
||||||
final var causalChain = Throwables.getCausalChain(item);
|
final var causalChain = Throwables.getCausalChain(item);
|
||||||
return causalChain.stream()
|
return causalChain.stream().map(Throwable::getClass).anyMatch(cls::isAssignableFrom);
|
||||||
.map(Throwable::getClass)
|
|
||||||
.allMatch(cls::isAssignableFrom);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user