/** Test of getSeqNum method, of class HetatomImpl. */ @Test public void testSetGetResidueNumber() { // System.out.println("setGetResidueNumber"); ResidueNumber residueNumber = new ResidueNumber("A", 42, ' '); HetatomImpl instance = new HetatomImpl(); instance.setResidueNumber(residueNumber); ResidueNumber expResult = residueNumber; ResidueNumber result = instance.getResidueNumber(); assertEquals(expResult, result); }
@Test public void testSetResidueNumberUsage() { List<Group> resNumgroups = new ArrayList<Group>(); for (int i = 0; i < bigTestNumber; i++) { ResidueNumber resNum = new ResidueNumber("A", i, ' '); HetatomImpl hetAtom = new HetatomImpl(); hetAtom.setResidueNumber(resNum); resNumgroups.add(hetAtom); } int groupsSize = resNumgroups.size(); assertEquals(bigTestNumber, groupsSize); }
@Test public void testGetResidueNumberUsage() { // System.out.println("testGetResidueNumberUsage"); List<Group> resNumgroups = new ArrayList<Group>(); for (int i = 0; i < bigTestNumber; i++) { ResidueNumber resNum = new ResidueNumber("A", i, ' '); HetatomImpl hetAtom = new HetatomImpl(); hetAtom.setResidueNumber(resNum); resNumgroups.add(hetAtom); } List<Integer> integers = new ArrayList<Integer>(); for (Group group : resNumgroups) { ResidueNumber resnum = group.getResidueNumber(); integers.add(resnum.getSeqNum()); } assertEquals(bigTestNumber, integers.size()); }