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