Пример #1
0
 /** 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);
 }
Пример #2
0
  @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);
  }
Пример #3
0
  @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());
  }