Skip to content

Commit

Permalink
Merge pull request #184 from cdk/patch-12Dec15
Browse files Browse the repository at this point in the history
Looks good to me.
  • Loading branch information
egonw committed Dec 12, 2015
2 parents 6514cd8 + 5e10262 commit 3d06f20
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -40,10 +40,10 @@ public void testGetAtomColor() {
Assert.assertNotNull(colors);
IAtom hydrogen = new Atom("H");
hydrogen.setAtomicNumber(1);
Assert.assertEquals(new Color(51, 51, 51), colors.getAtomColor(hydrogen));
Assert.assertEquals(new Color(0, 0, 0), colors.getAtomColor(hydrogen));
IAtom helium = new Atom("He");
helium.setAtomicNumber(2);
Assert.assertEquals(new Color(103, 194, 255), colors.getAtomColor(helium));
Assert.assertEquals(new Color(217, 255, 255), colors.getAtomColor(helium));
}

@Test
Expand All @@ -52,6 +52,6 @@ public void testGetDefaultAtomColor() {

Assert.assertNotNull(colors);
IAtom imaginary = new Atom("Ix");
Assert.assertEquals(new Color(51, 51, 51), colors.getAtomColor(imaginary, Color.BLACK));
Assert.assertEquals(new Color(0, 0, 0), colors.getAtomColor(imaginary, Color.BLACK));
}
}
Expand Up @@ -212,7 +212,7 @@ private Point2D intersect(List<Point2D> outline, Line2D line) {
}
previousPoint = point;
}
return null;
return new Point2D.Double(line.getX1(), line.getY1());
}

/**
Expand Down

0 comments on commit 3d06f20

Please sign in to comment.