new ArrayList<Vector2d>()); final TextOutline outline = generateAnnotation(atom.getPoint2d(), Integer.toString(attachNum), vector,
@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() { 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_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_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 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_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 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()); }
@Test public void testPseudoAtom_IAtom() { IChemObject object = newChemObject(); IAtom atom = object.getBuilder().newInstance(IAtom.class, "C"); Point3d fract = new Point3d(0.5, 0.5, 0.5); Point3d threeD = new Point3d(0.5, 0.5, 0.5); Point2d twoD = new Point2d(0.5, 0.5); atom.setFractionalPoint3d(fract); atom.setPoint3d(threeD); atom.setPoint2d(twoD); IPseudoAtom a = object.getBuilder().newInstance(IPseudoAtom.class, atom); assertEquals(fract, a.getFractionalPoint3d(), 0.0001); assertEquals(threeD, a.getPoint3d(), 0.0001); assertEquals(twoD, a.getPoint2d(), 0.0001); }