Clover icon

Coverage Report

  1. Project Clover database Mon Nov 18 2024 09:38:20 GMT
  2. Package jalview.structure

File PDBEntryUtilsTest.java

 

Code metrics

0
6
1
1
26
18
1
0.17
6
1
1

Classes

Class Line # Actions
PDBEntryUtilsTest 12 6 1
1.0100%
 

Contributing tests

This file is covered by 1 test. .

Source view

1    package jalview.structure;
2   
3    import static org.testng.Assert.assertEquals;
4   
5    import java.util.List;
6   
7    import org.testng.annotations.Test;
8   
9    import jalview.datamodel.PDBEntry;
10    import jalview.datamodel.Sequence;
11   
 
12    public class PDBEntryUtilsTest
13    {
14   
 
15  1 toggle @Test(groups= {"Functional"})
16    public void testinferPDBEntry() {
17  1 List<PDBEntry> expected;
18  1 expected = PDBEntryUtils.inferPDBEntry(new Sequence("1sqy_A.pdb",""));
19  1 assertEquals(expected.size(),1);
20  1 PDBEntry exp = expected.get(0);
21  1 assertEquals(exp.getId(),"1sqy");
22  1 assertEquals(exp.getChainCode(), "A");
23   
24   
25    }
26    }