File tree Expand file tree Collapse file tree
main/java/org/biojava/nbio/structure/io/mmtf
test/java/org/biojava/nbio/structure/mmtf Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11package org .biojava .nbio .structure .mmtf ;
22
3+ import java .io .IOException ;
4+
5+ import static org .junit .Assert .assertEquals ;
6+
7+ import org .biojava .nbio .structure .Structure ;
8+ import org .biojava .nbio .structure .io .mmtf .ParseUsingBioJava ;
9+ import org .junit .Test ;
10+ import org .rcsb .mmtf .decoder .ParsingParams ;
11+ import org .rcsb .mmtf .examples .HandleIO ;
12+
313/**
414 * Tests for the MMTF parser in Biojava
515 * @author Anthony Bradley
616 *
717 */
818public class TestMmtfParser {
919
20+ /**
21+ * Can we parse an MMTF file and
22+ * @throws IOException
23+ */
24+ @ Test
25+ public void basicTest () throws IOException {
26+ HandleIO gbjs = new HandleIO ();
27+ byte [] inputByteArr = gbjs .getFromUrl ("1qmz" );
28+ ParsingParams parsingParms = new ParsingParams ();
29+ parsingParms .setParseInternal (false );
30+ ParseUsingBioJava parseUseBiojava = new ParseUsingBioJava ();
31+ Structure biojavaStruct = parseUseBiojava .getBiojavaStruct (inputByteArr , parsingParms );
32+ assertEquals (biojavaStruct .getChains ().size (), 6 );
33+
34+ }
1035}
You can’t perform that action at this time.
0 commit comments