File tree Expand file tree Collapse file tree
biojava-structure/src/test/java/org/biojava/nbio/structure Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3333public class TestBond {
3434
3535
36+ private static AtomCache cache ;
37+
3638 @ BeforeClass
3739 public static void setUp () throws IOException , StructureException {
38- AtomCache cache = new AtomCache ();
40+ cache = new AtomCache ();
3941
40- cache .setUseMmCif (false );
42+ cache .setUseMmCif (true );
4143
4244 FileParsingParameters params = cache .getFileParsingParams ();
4345
@@ -93,6 +95,8 @@ public void testPeptideBonds() throws StructureException, IOException {
9395
9496 @ Test
9597 public void testLINKBonds () throws StructureException , IOException {
98+
99+ cache .setUseMmCif (false );
96100
97101 Structure s = StructureIO .getStructure ("1kh9" );
98102
@@ -109,6 +113,8 @@ public void testLINKBonds() throws StructureException, IOException {
109113 assertNotNull (atom1 );
110114 assertNotNull (atom2 );
111115 assertTrue (areBonded (atom1 , atom2 ));
116+
117+ cache .setUseMmCif (true );
112118 }
113119
114120 @ Test
@@ -161,4 +167,5 @@ public void test1APJ() throws IOException, StructureException {
161167 public void test1BDX () throws IOException , StructureException {
162168 StructureIO .getStructure ("1BDX" );
163169 }
170+
164171}
You can’t perform that action at this time.
0 commit comments