Cache.applicationProperties.setProperty("ADD_SS_ANN",
Boolean.TRUE.toString());
- sf = new SequenceFetcher(false);
+ sf = new SequenceFetcher();
}
/**
private void testRetrieveProteinSeqFromPDB() throws Exception
{
List<DbSourceProxy> sps = sf.getSourceProxy("PDB");
+ StringBuilder errors = new StringBuilder();
for (TestRetrieveObject str : toRetrieve)
{
AlignmentI response = sps.get(0).getSequenceRecords(str.id);
List<SequenceFeature> sf = sq.findFeatures(col, col, "RESNUM");
if (sf.size() != 1)
{
- errors.append(
- str.id + ": " +
- "Expected one feature at column (position): "
- + (col - 1)
- + " (" + sq.findPosition(col - 1) + ")"
- + ": saw "
- + sf.size());
+ errors.append(str.id + ": "
+ + "Expected one feature at column (position): "
+ + (col - 1) + " (" + sq.findPosition(col - 1) + ")"
+ + ": saw " + sf.size());
errors.append("\n");
if (prev != null)
{
lastp = sq.findPosition(col - 1);
}
}
- if (errors.length() > 0)
- {
- Assert.fail(errors.toString());
- }
}
}
+ if (errors.length() > 0)
+ {
+ Assert.fail(errors.toString());
+ }
}
}