diff --git a/base/test-standard/src/test/java/org/openscience/cdk/aromaticity/AromaticityTest.java b/base/test-standard/src/test/java/org/openscience/cdk/aromaticity/AromaticityTest.java index 2c350192be..343264db82 100644 --- a/base/test-standard/src/test/java/org/openscience/cdk/aromaticity/AromaticityTest.java +++ b/base/test-standard/src/test/java/org/openscience/cdk/aromaticity/AromaticityTest.java @@ -26,6 +26,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; +import org.openscience.cdk.exception.Intractable; import org.openscience.cdk.graph.Cycles; import org.openscience.cdk.interfaces.IAtom; import org.openscience.cdk.interfaces.IAtomContainer; @@ -176,7 +177,7 @@ void outOfMemoryExceptionInitialCycles() throws Exception { Aromaticity aromaticity = new Aromaticity(ElectronDonation.daylight(), Cycles.or(Cycles.all(), Cycles.essential())); AtomContainerManipulator.percieveAtomTypesAndConfigureAtoms(atomContainer); Intractable error = Assertions.assertThrows(Intractable.class, - () -> { + () -> { aromaticity.apply(atomContainer); }); Assertions.assertNotNull(error);