Corrects condition

This commit is contained in:
Anurag Agarwal 2020-08-08 11:56:34 +00:00
parent 8b92bc6bb6
commit 134ccdb5a1
No known key found for this signature in database
GPG Key ID: CF5E14552DA23F13
2 changed files with 3 additions and 3 deletions

View File

@ -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");

View File

@ -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