Skip to content

Commit

Permalink
Test to ensure that the atom type name is returned with IAtomType.toS…
Browse files Browse the repository at this point in the history
…tring()

Change-Id: I83ec328f025aabf0915a17ef04dcff5299690498
Signed-off-by: John May <john.wilkinsonmay@gmail.com>
  • Loading branch information
egonw committed Feb 21, 2013
1 parent 4f94329 commit 471a20c
Showing 1 changed file with 8 additions and 0 deletions.
Expand Up @@ -300,6 +300,14 @@ public abstract class AbstractAtomTypeTest extends AbstractIsotopeTest {
}
}

@Test public void testToString_AtomTypeName() {
IAtomType at = (IAtomType)newChemObject();
at.setAtomTypeName("N.sp2.3");
String description = at.toString();
System.out.println(description);
Assert.assertTrue(description.contains("N.sp2.3"));
}

@Test public void testDefaultFormalCharge() {
IAtomType atomType = (IAtomType)newChemObject();
Assert.assertEquals(0, atomType.getFormalCharge().intValue());
Expand Down

0 comments on commit 471a20c

Please sign in to comment.