import java.io.File;
-import org.testng.Assert;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.BeforeMethod;
{
for (int q = p + 1; q < avec.length; q++)
{
- Assert.assertNotEquals("Found a duplicate annotation row "
- + avec[p].label, avec[p], avec[q]);
+ assertTrue("Found a duplicate annotation row "
+ + avec[p].label, avec[p] != avec[q]);
}
}
}
af.loadJalviewDataFile(exonerateOutput, FormatAdapter.FILE, null, null);
- assertNotEquals("Expected at least one DNA protein association",
- 0, af.getViewport().getAlignment().getDataset()
- .getCodonFrames().size(),
+ assertTrue("Expected at least one DNA protein association", 0 != af
+ .getViewport().getAlignment().getDataset().getCodonFrames()
+ .size()
);
}
assertFalse(
"Failed to replace dummy seq2 with real sequence",
seq2 instanceof SequenceDummy
- && ((SequenceDummy) seq2).isDummy(),
- "Failed to replace dummy seq2 with real sequence");
+ && ((SequenceDummy) seq2).isDummy());
String placeholderseq = new SequenceDummy("foo").getSequenceAsString();
assertFalse("dummy replacement buggy for seq1",
placeholderseq.equals(seq1.getSequenceAsString()));
assertTrue(
"Expected at least one CDNA/Protein mapping for seq1",
dataset.getCodonFrame(seq1) != null
- && dataset.getCodonFrame(seq1).size() > 0,
- "Expected at least one CDNA/Protein mapping for seq1");
+ && dataset.getCodonFrame(seq1).size() > 0);
}
// @Test(groups ={ "Functional" })