3 import static org.testng.AssertJUnit.assertSame;
4 import static org.testng.AssertJUnit.assertNull;
5 import org.testng.annotations.Test;
6 import java.util.Vector;
8 public class ResidueTest
12 public void testFindAtom()
14 Atom a1 = new Atom(1f, 2f, 3f);
16 Atom a2 = new Atom(1f, 2f, 3f);
18 Atom a3 = new Atom(1f, 2f, 3f);
20 Atom a4 = new Atom(1f, 2f, 3f);
22 Vector<Atom> v = new Vector<Atom>();
27 Residue r = new Residue(v, 293, 12);
29 assertSame(a1, r.findAtom("C"));
30 assertSame(a2, r.findAtom("A"));
31 assertSame(a3, r.findAtom("P"));
32 assertNull(r.findAtom("S"));