package MCview; import static org.testng.AssertJUnit.assertEquals; import org.testng.annotations.Test; public class BondTest { @Test(groups ={ "Functional" }) public void testTranslate() { Atom a1 = new Atom(1f, 2f, 3f); Atom a2 = new Atom(7f, 6f, 5f); Bond b = new Bond(a1, a2); b.translate(8f, 9f, 10f); assertEquals(9f, b.start[0], 0.0001f); assertEquals(11f, b.start[1], 0.0001f); assertEquals(13f, b.start[2], 0.0001f); assertEquals(15f, b.end[0], 0.0001f); assertEquals(15f, b.end[1], 0.0001f); assertEquals(15f, b.end[2], 0.0001f); } }