Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4acb6e3

Browse files
johnmayegonw
authored andcommitted
Message is empty string rather than null.
1 parent 7c6b5b7 commit 4acb6e3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

storage/inchi/src/test/java/org/openscience/cdk/inchi/InChIGeneratorTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,9 @@ public void testGetMessage() throws Exception {
120120
IAtomContainer ac = new AtomContainer();
121121
ac.addAtom(new Atom("Cl"));
122122
InChIGenerator gen = getFactory().getInChIGenerator(ac, "FixedH");
123-
Assert.assertNull("Because this generation should work, I expected a null message String.", gen.getMessage());
123+
Assert.assertEquals(
124+
"Because this generation should work, I expected an empty message String.",
125+
"", gen.getMessage());
124126
}
125127

126128
@Test

0 commit comments

Comments
 (0)