Skip to content

Commit

Permalink
Correct more test with bad atom symbols and symbol visibility due to …
Browse files Browse the repository at this point in the history
…hcount.
  • Loading branch information
johnmay committed Oct 16, 2016
1 parent 3c5d224 commit c887ff3
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ public void iupacMethylPreferred() {
public void iupacMethylAcceptable() {
IAtom a1 = new Atom("C");
IAtom a2 = new Atom("C");
a1.setImplicitHydrogenCount(null);
a1.setImplicitHydrogenCount(null);
IBond bond = new Bond(a1, a2);
a1.setPoint2d(new Point2d(0, 0));
a2.setPoint2d(new Point2d(0, 0));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import org.junit.Test;
import org.openscience.cdk.Atom;
import org.openscience.cdk.CDKTestCase;
import org.openscience.cdk.PseudoAtom;
import org.openscience.cdk.interfaces.IAtom;

/**
Expand All @@ -51,7 +52,7 @@ public void testGetDefaultAtomColor() {
CDK2DAtomColors colors = new CDK2DAtomColors();

Assert.assertNotNull(colors);
IAtom imaginary = new Atom("Ix");
IAtom imaginary = new PseudoAtom("Ix");
Assert.assertEquals(new Color(0, 0, 0), colors.getAtomColor(imaginary, Color.BLACK));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import org.junit.Test;
import org.openscience.cdk.Atom;
import org.openscience.cdk.CDKTestCase;
import org.openscience.cdk.PseudoAtom;
import org.openscience.cdk.interfaces.IAtom;

/**
Expand All @@ -52,7 +53,7 @@ public void testGetDefaultAtomColor() {
CDKAtomColors colors = new CDKAtomColors();

Assert.assertNotNull(colors);
IAtom imaginary = new Atom("Ix");
IAtom imaginary = new PseudoAtom("Ix");
Assert.assertEquals(Color.ORANGE, colors.getAtomColor(imaginary, Color.ORANGE));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import org.junit.Test;
import org.openscience.cdk.Atom;
import org.openscience.cdk.CDKTestCase;
import org.openscience.cdk.PseudoAtom;
import org.openscience.cdk.interfaces.IAtom;

/**
Expand All @@ -48,7 +49,7 @@ public void testGetDefaultAtomColor() {
CPKAtomColors colors = new CPKAtomColors();

Assert.assertNotNull(colors);
IAtom imaginary = new Atom("Ix");
IAtom imaginary = new PseudoAtom("Ix");
Assert.assertEquals(Color.ORANGE, colors.getAtomColor(imaginary, Color.ORANGE));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import org.junit.Test;
import org.openscience.cdk.Atom;
import org.openscience.cdk.CDKTestCase;
import org.openscience.cdk.PseudoAtom;
import org.openscience.cdk.interfaces.IAtom;

/**
Expand All @@ -51,7 +52,7 @@ public void testGetDefaultAtomColor() {
PartialAtomicChargeColors colors = new PartialAtomicChargeColors();

Assert.assertNotNull(colors);
IAtom imaginary = new Atom("Ix");
IAtom imaginary = new PseudoAtom("Ix");
Assert.assertEquals(Color.ORANGE, colors.getAtomColor(imaginary, Color.ORANGE));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

import org.openscience.cdk.Atom;
import org.openscience.cdk.CDKTestCase;
import org.openscience.cdk.PseudoAtom;
import org.openscience.cdk.interfaces.IAtom;

/**
Expand All @@ -51,7 +52,7 @@ public void testGetDefaultAtomColor() {
RasmolColors colors = new RasmolColors();

Assert.assertNotNull(colors);
IAtom imaginary = new Atom("Ix");
IAtom imaginary = new PseudoAtom("Ix");
Assert.assertEquals(Color.ORANGE, colors.getAtomColor(imaginary, Color.ORANGE));
}

Expand Down

0 comments on commit c887ff3

Please sign in to comment.