Skip to content

Commit 134ccdb

Browse files
committed
Corrects condition
1 parent 8b92bc6 commit 134ccdb

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎naked-objects/integtests/src/test/java/domainapp/integtests/bootstrap/SimpleAppSystemInitializer.java‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
import org.apache.isis.core.commons.config.IsisConfiguration;
2727
import org.apache.isis.core.integtestsupport.IsisSystemForTest;
28+
import org.apache.isis.objectstore.jdo.datanucleus.DataNucleusPersistenceMechanismInstaller;
2829
import org.apache.isis.objectstore.jdo.datanucleus.IsisConfigurationForJdoIntegTests;
2930

3031
/**
@@ -50,6 +51,7 @@ private static class SimpleAppSystemBuilder extends IsisSystemForTest.Builder {
5051

5152
public SimpleAppSystemBuilder() {
5253
with(testConfiguration());
54+
with(new DataNucleusPersistenceMechanismInstaller());
5355

5456
// services annotated with @DomainService
5557
withServicesIn("domainapp");

‎naked-objects/integtests/src/test/java/domainapp/integtests/tests/modules/simple/SimpleObjectsIntegTest.java‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,7 @@ private static Matcher<? extends Throwable> causalChainContains(final Class<?> c
124124
@SuppressWarnings("UnstableApiUsage")
125125
protected boolean matchesSafely(Throwable item) {
126126
final var causalChain = Throwables.getCausalChain(item);
127-
return causalChain.stream()
128-
.map(Throwable::getClass)
129-
.allMatch(cls::isAssignableFrom);
127+
return causalChain.stream().map(Throwable::getClass).anyMatch(cls::isAssignableFrom);
130128
}
131129

132130
@Override

0 commit comments

Comments
 (0)