Skip to content

Commit 28646e7

Browse files
committed
Fixing test after cherry pick
1 parent a56d30b commit 28646e7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

biojava-integrationtest/src/test/java/org/biojava/nbio/structure/test/StructureToolsTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ public void testCAmmCIF() throws StructureException {
549549
@Test
550550
public void testGetRepresentativeAtomsProtein() throws StructureException, IOException {
551551
Structure s = StructureIO.getStructure("1smt");
552-
Chain c = s.getChain(0);
552+
Chain c = s.getChainByIndex(0);
553553
Atom[] atoms = StructureTools.getRepresentativeAtomArray(c);
554554
assertEquals(98,atoms.length);
555555

@@ -562,7 +562,7 @@ public void testGetRepresentativeAtomsProtein() throws StructureException, IOExc
562562
public void testGetRepresentativeAtomsDna() throws StructureException, IOException {
563563

564564
Structure s = StructureIO.getStructure("2pvi");
565-
Chain c = s.getChainByPDB("C");
565+
Chain c = s.getPolyChainByPDB("C");
566566
Atom[] atoms = StructureTools.getRepresentativeAtomArray(c); // chain C (1st nucleotide chain)
567567
// actually it should be 13, but at the moment one of the nucleotides is not caught correctly because it's non-standard
568568
assertEquals(12,atoms.length);

0 commit comments

Comments
 (0)