Skip to content

Commit 0caedcd

Browse files
committed
Resolve assertion warnings.
1 parent 2cd06ab commit 0caedcd

File tree

6 files changed

+50
-183
lines changed

6 files changed

+50
-183
lines changed

base/test-core/src/test/java/org/openscience/cdk/atomtype/AbstractAtomTypeTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ private void addTestedAtomType(Map<String, Integer> testedAtomTypes, String expe
150150
Assert.assertNotNull("Attempt to test atom type which is not defined in the " + getAtomTypeListName()
151151
+ ": " + expectedID, type);
152152
} catch (NoSuchAtomTypeException exception) {
153-
Assert.assertNotNull("Attempt to test atom type which is not defined in the " + getAtomTypeListName()
153+
Assert.fail("Attempt to test atom type which is not defined in the " + getAtomTypeListName()
154154
+ ": " + exception.getMessage());
155155
}
156156
if (testedAtomTypes.containsKey(expectedID)) {

0 commit comments

Comments
 (0)