Skip to content

Commit 1f4830f

Browse files
committed
Changing TestBond to use mmcif
1 parent 7824f30 commit 1f4830f

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

  • biojava-structure/src/test/java/org/biojava/nbio/structure

biojava-structure/src/test/java/org/biojava/nbio/structure/TestBond.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,13 @@
3333
public 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
}

0 commit comments

Comments
 (0)