JAL-1270 JUnit to TestNG refactoring
[jalview.git] / test / MCview / BondTest.java
1 package MCview;
2
3 import static org.testng.AssertJUnit.assertEquals;
4 import org.testng.annotations.Test;
5
6 public class BondTest
7 {
8
9   @Test
10   public void testTranslate()
11   {
12     Atom a1 = new Atom(1f, 2f, 3f);
13     Atom a2 = new Atom(7f, 6f, 5f);
14     Bond b = new Bond(a1, a2);
15     b.translate(8f, 9f, 10f);
16     assertEquals(9f, b.start[0], 0.0001f);
17     assertEquals(11f, b.start[1], 0.0001f);
18     assertEquals(13f, b.start[2], 0.0001f);
19     assertEquals(15f, b.end[0], 0.0001f);
20     assertEquals(15f, b.end[1], 0.0001f);
21     assertEquals(15f, b.end[2], 0.0001f);
22   }
23 }