if (pseudoAtom.getSymbol().equals("R") && !label.isEmpty() && matcher.matches()) {
if (pseudoAtom.getSymbol().equals("R") && !label.isEmpty() && matcher.matches()) {
@Test public void testPseudoAtom() { IPseudoAtom a = new PseudoAtom(); Assert.assertEquals("R", a.getSymbol()); Assert.assertNull(a.getPoint3d()); Assert.assertNull(a.getPoint2d()); Assert.assertNull(a.getFractionalPoint3d()); }
@Test public void testPseudoAtom() { IPseudoAtom a = new PseudoAtom(); Assert.assertEquals("R", a.getSymbol()); Assert.assertNull(a.getPoint3d()); Assert.assertNull(a.getPoint2d()); Assert.assertNull(a.getFractionalPoint3d()); }
@Test public void testDebugPseudoAtom() { IPseudoAtom a = new DebugPseudoAtom(); Assert.assertEquals("R", a.getSymbol()); Assert.assertNull(a.getPoint3d()); Assert.assertNull(a.getPoint2d()); Assert.assertNull(a.getFractionalPoint3d()); }
@Test public void testPseudoAtom_String() { String label = "Arg255"; IPseudoAtom a = new PseudoAtom(label); Assert.assertEquals("R", a.getSymbol()); Assert.assertEquals(label, a.getLabel()); Assert.assertNull(a.getPoint3d()); Assert.assertNull(a.getPoint2d()); Assert.assertNull(a.getFractionalPoint3d()); }
@Test public void testDebugPseudoAtom_String() { String label = "Arg255"; IPseudoAtom a = new DebugPseudoAtom(label); Assert.assertEquals("R", a.getSymbol()); Assert.assertEquals(label, a.getLabel()); Assert.assertNull(a.getPoint3d()); Assert.assertNull(a.getPoint2d()); Assert.assertNull(a.getFractionalPoint3d()); }
@Test public void testPseudoAtom_String() { String label = "Arg255"; IPseudoAtom a = new PseudoAtom(label); Assert.assertEquals("R", a.getSymbol()); Assert.assertEquals(label, a.getLabel()); Assert.assertNull(a.getPoint3d()); Assert.assertNull(a.getPoint2d()); Assert.assertNull(a.getFractionalPoint3d()); }
@Test public void testPseudoAtom_IElement() { IElement element = newChemObject().getBuilder().newInstance(IElement.class); IPseudoAtom a = new PseudoAtom(element); Assert.assertEquals("R", a.getSymbol()); Assert.assertNull(a.getPoint3d()); Assert.assertNull(a.getPoint2d()); Assert.assertNull(a.getFractionalPoint3d()); }
@Test public void testDebugPseudoAtom_IElement() { IElement element = newChemObject().getBuilder().newInstance(IElement.class); IPseudoAtom a = new DebugPseudoAtom(element); Assert.assertEquals("R", a.getSymbol()); Assert.assertNull(a.getPoint3d()); Assert.assertNull(a.getPoint2d()); Assert.assertNull(a.getFractionalPoint3d()); }
@Test public void testDebugPseudoAtom_String_Point2d() { Point2d point = new Point2d(1.0, 2.0); String label = "Arg255"; IPseudoAtom a = new DebugPseudoAtom(label, point); Assert.assertEquals("R", a.getSymbol()); Assert.assertEquals(label, a.getLabel()); Assert.assertEquals(point, a.getPoint2d()); Assert.assertNull(a.getPoint3d()); Assert.assertNull(a.getFractionalPoint3d()); }
@Test public void testPseudoAtom_String_Point2d() { Point2d point = new Point2d(1.0, 2.0); String label = "Arg255"; IPseudoAtom a = new PseudoAtom(label, point); Assert.assertEquals("R", a.getSymbol()); Assert.assertEquals(label, a.getLabel()); Assert.assertEquals(point, a.getPoint2d()); Assert.assertNull(a.getPoint3d()); Assert.assertNull(a.getFractionalPoint3d()); }
@Test public void testPseudoAtom_String_Point3d() { Point3d point = new Point3d(1.0, 2.0, 3.0); String label = "Arg255"; IPseudoAtom a = new PseudoAtom(label, point); Assert.assertEquals("R", a.getSymbol()); Assert.assertEquals(label, a.getLabel()); Assert.assertEquals(point, a.getPoint3d()); Assert.assertNull(a.getPoint2d()); Assert.assertNull(a.getFractionalPoint3d()); } }
@Test public void testDebugPseudoAtom_String_Point3d() { Point3d point = new Point3d(1.0, 2.0, 3.0); String label = "Arg255"; IPseudoAtom a = new DebugPseudoAtom(label, point); Assert.assertEquals("R", a.getSymbol()); Assert.assertEquals(label, a.getLabel()); Assert.assertEquals(point, a.getPoint3d()); Assert.assertNull(a.getPoint2d()); Assert.assertNull(a.getFractionalPoint3d()); } }
@Test public void testPseudoAtom_IElement() { IElement element = newChemObject().getBuilder().newInstance(IElement.class); IPseudoAtom a = new PseudoAtom(element); Assert.assertEquals("R", a.getSymbol()); Assert.assertNull(a.getPoint3d()); Assert.assertNull(a.getPoint2d()); Assert.assertNull(a.getFractionalPoint3d()); }
@Test @Override public void testPseudoAtom_IAtom() { IAtom element = newChemObject().getBuilder().newInstance(IAtom.class, "C"); IPseudoAtom a = new PseudoAtom(element); Assert.assertEquals("R", a.getSymbol()); Assert.assertNull(a.getPoint3d()); Assert.assertNull(a.getPoint2d()); Assert.assertNull(a.getFractionalPoint3d()); }
@Test public void testPseudoAtom_String_Point2d() { Point2d point = new Point2d(1.0, 2.0); String label = "Arg255"; IPseudoAtom a = new PseudoAtom(label, point); Assert.assertEquals("R", a.getSymbol()); Assert.assertEquals(label, a.getLabel()); Assert.assertEquals(point, a.getPoint2d()); Assert.assertNull(a.getPoint3d()); Assert.assertNull(a.getFractionalPoint3d()); }
@Test public void testPseudoAtom_String_Point3d() { Point3d point = new Point3d(1.0, 2.0, 3.0); String label = "Arg255"; IPseudoAtom a = new PseudoAtom(label, point); Assert.assertEquals("R", a.getSymbol()); Assert.assertEquals(label, a.getLabel()); Assert.assertEquals(point, a.getPoint3d()); Assert.assertNull(a.getPoint2d()); Assert.assertNull(a.getFractionalPoint3d()); }