Skip to content

Commit ee8dac9

Browse files
committed
Fix to add chemComp info for the Basic MMTF test.
1 parent 03b4168 commit ee8dac9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

biojava-structure/src/test/java/org/biojava/nbio/structure/io/mmtf/TestBasicMmtf.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import org.biojava.nbio.structure.ResidueNumber;
2020
import org.biojava.nbio.structure.Structure;
2121
import org.biojava.nbio.structure.StructureImpl;
22+
import org.biojava.nbio.structure.io.mmcif.model.ChemComp;
2223
import org.junit.Rule;
2324
import org.junit.Test;
2425
import org.junit.rules.TemporaryFolder;
@@ -65,6 +66,10 @@ public void testWrite() throws IOException {
6566
chain.setName("A");
6667
Group group = new AminoAcidImpl();
6768
group.setPDBName("FKF");
69+
ChemComp chemComp = new ChemComp();
70+
chemComp.setType("TYPfdl");
71+
chemComp.setOne_letter_code("A");
72+
group.setChemComp(chemComp);
6873
Atom atom = new AtomImpl();
6974
atom.setName("A");
7075
atom.setElement(Element.Ag);

0 commit comments

Comments
 (0)