Skip to content

Commit d6c187b

Browse files
committed
TestMMcifOrganismParsing: Using enum rather than String for comparison.
1 parent 05dc28b commit d6c187b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

biojava-structure/src/test/java/org/biojava/nbio/structure/io/TestMMcifOrganismParsing.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626

2727
import org.biojava.nbio.structure.EntityInfo;
28+
import org.biojava.nbio.structure.EntityType;
2829
import org.biojava.nbio.structure.Structure;
2930
import org.biojava.nbio.structure.StructureException;
3031
import org.biojava.nbio.structure.StructureIO;
@@ -92,7 +93,7 @@ private void checkPDB(String pdbId, String organismTaxId) throws IOException, St
9293
assertTrue(s.getEntityInfos().size() > 0);
9394

9495
for ( EntityInfo c : s.getEntityInfos()) {
95-
if(c.getType().equals("polymer")) {
96+
if(EntityType.POLYMER.equals(c.getType())) {
9697
assertNotNull(c.getOrganismTaxId());
9798
if(pdbId.equals("3zd6")){
9899
if(c.getMolId()==2) {

0 commit comments

Comments
 (0)