// The Asserts below are expected to fail until the PDB chainCode is
// recoverable from a Jalview projects
- Assert.assertTrue(rseqs[0].getDatasetSequence().getAllPDBEntries()
- .get(0).equals(pdbEntries[0]));
- Assert.assertTrue(rseqs[1].getDatasetSequence().getAllPDBEntries()
- .get(0).equals(pdbEntries[1]));
- Assert.assertTrue(rseqs[2].getDatasetSequence().getAllPDBEntries()
- .get(0).equals(pdbEntries[2]));
- Assert.assertTrue(rseqs[3].getDatasetSequence().getAllPDBEntries()
- .get(0).equals(pdbEntries[3]));
+ for (int chain = 0; chain < 4; chain++)
+ {
+ PDBEntry recov = rseqs[chain].getDatasetSequence().getAllPDBEntries()
+ .get(0);
+ PDBEntry expected = pdbEntries[chain];
+ Assert.assertEquals(recov.getId(), expected.getId(),
+ "Mismatch PDB ID");
+ Assert.assertEquals(recov.getChainCode(), expected.getChainCode(),
+ "Mismatch PDB ID");
+ Assert.assertEquals(recov.getType(), expected.getType(),
+ "Mismatch PDBEntry 'Type'");
+ Assert.assertNotNull(recov.getFile(),
+ "Recovered PDBEntry should have a non-null file entry");
+ }
}
}