DoubleBond2DParity extends GeometricParity { @Override public int parity() { return parity(l1, l2, r) * parity(r1, r2, l); } DoubleBond2DParity(Point2d left, Point2d right, Point2d leftSubstituent, Point2d rightSubstituent);  DoubleBond2DParity(Point2d left, Point2d right, Point2d leftSubstituent1, Point2d leftSubstituent2,
            Point2d rightSubstituent1, Point2d rightSubstituent2); @Override int parity();  }
@Test public void unspecified() throws Exception { GeometricParity geometric = new DoubleBond2DParity(new Point2d(-2.6518, 0.1473), new Point2d(-1.8268, 0.1473), new Point2d(-3.0643, 0.8618), new Point2d(-1.4143, 0.1473)); assertEquals(UNSPECIFIED, geometric.parity()); }
@Test public void opposite() throws Exception { GeometricParity geometric = new DoubleBond2DParity(new Point2d(-2.6518, 0.1473), new Point2d(-1.8268, 0.1473), new Point2d(-3.0643, 0.8618), new Point2d(-1.4143, -0.5671)); assertEquals(OPPOSITE, geometric.parity()); }
@Test public void together() throws Exception { GeometricParity geometric = new DoubleBond2DParity(new Point2d(-2.6518, 0.1473), new Point2d(-1.8268, 0.1473), new Point2d(-3.0643, 0.8618), new Point2d(-1.4143, 0.8618)); assertEquals(TOGETHER, geometric.parity()); }
@Test public void unspecified_both() throws Exception { GeometricParity geometric = new DoubleBond2DParity(new Point2d(-2.6518, 0.1473), new Point2d(-1.8268, 0.1473), new Point2d(-3.0643, 0.1473), new Point2d(-1.4143, 0.1473)); assertEquals(UNSPECIFIED, geometric.parity()); }
@Test public void opposite_inverted() throws Exception { GeometricParity geometric = new DoubleBond2DParity(new Point2d(-2.6518, 0.1473), new Point2d(-1.8268, 0.1473), new Point2d(-3.0643, -0.5671), new Point2d(-1.4143, 0.8618)); assertEquals(OPPOSITE, geometric.parity()); }
@Test public void together_inverted() throws Exception { GeometricParity geometric = new DoubleBond2DParity(new Point2d(-2.6518, 0.1473), new Point2d(-1.8268, 0.1473), new Point2d(-3.0643, -0.5671), new Point2d(-1.4143, -0.5671)); assertEquals(TOGETHER, geometric.parity()); }
@Test public void opposite30() throws Exception { GeometricParity geometric = new DoubleBond2DParity(new Point2d(-2.4455, 0.5046), new Point2d(-2.0330, -0.2099), new Point2d(-2.0330, 1.2191), new Point2d(-2.4455, -0.9244)); assertEquals(OPPOSITE, geometric.parity()); }
@Test public void together30() throws Exception { GeometricParity geometric = new DoubleBond2DParity(new Point2d(-2.4455, 0.5046), new Point2d(-2.0330, -0.2099), new Point2d(-3.2705, 0.5046), new Point2d(-2.4455, -0.9244)); assertEquals(TOGETHER, geometric.parity()); }
@Test public void unspecified30() throws Exception { GeometricParity geometric = new DoubleBond2DParity(new Point2d(-2.4455, 0.5046), new Point2d(-2.0330, -0.2099), new Point2d(-2.8580, 1.2191), new Point2d(-2.4455, -0.9244)); assertEquals(UNSPECIFIED, geometric.parity()); }