InChIGenerator { public String getMessage() { return (output.getMessage()); } protected  InChIGenerator(IAtomContainer atomContainer, boolean ignoreAromaticBonds); protected  InChIGenerator(IAtomContainer atomContainer, String options, boolean ignoreAromaticBonds); protected  InChIGenerator(IAtomContainer atomContainer, List<INCHI_OPTION> options, boolean ignoreAromaticBonds); INCHI_RET getReturnStatus(); String getInchi(); String getInchiKey(); String getAuxInfo(); String getMessage(); String getLog();  }
@Test public void testGetMessage() throws Exception { IAtomContainer ac = new AtomContainer(); ac.addAtom(new Atom("Cl")); InChIGenerator gen = getFactory().getInChIGenerator(ac, "FixedH"); Assert.assertNull("Because this generation should work, I expected a null message String.", gen.getMessage()); }
@Test public void testGetWarningMessage() throws Exception { IAtomContainer ac = new AtomContainer(); ac.addAtom(new Atom("Cl")); ac.addAtom(new Atom("H")); ac.addBond(0, 1, Order.TRIPLE); InChIGenerator gen = getFactory().getInChIGenerator(ac); Assert.assertNotNull(gen.getMessage()); Assert.assertTrue(gen.getMessage().contains("Accepted unusual valence")); }