示例#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 of getChainId method, of class HetatomImpl. */
 @Test
 public void testGetChainId() {
   //        System.out.println("getChainId");
   Chain chain = new ChainImpl();
   chain.setChainID("A");
   HetatomImpl instance = new HetatomImpl();
   instance.setChain(chain);
   String expResult = "A";
   String result = instance.getChainId();
   assertEquals(expResult, result);
 }
示例#3
0
 /** Test of setChain method, of class HetatomImpl. */
 @Test
 public void testSetGetChain() {
   //        System.out.println("setGetChain");
   Chain chain = new ChainImpl();
   chain.setChainID("A");
   HetatomImpl instance = new HetatomImpl();
   instance.setChain(chain);
   Chain expResult = chain;
   Chain result = instance.getChain();
   assertEquals(expResult, result);
 }
示例#4
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);
  }
示例#5
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());
  }