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