Ejemplo n.º 1
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());
  }