assertTrue(models.hasNext());
/*
- * models are served in alphabetical order of name
- * it so happens the 3 ScoreMatrix models precede the two
- * others
+ * models are served in order of addition
*/
ScoreModelI sm = models.next();
assertTrue(sm instanceof ScoreMatrix);
sm = models.next();
assertTrue(sm instanceof ScoreMatrix);
- assertEquals(sm.getName(), "DNA");
- assertEquals(((ScoreMatrix) sm).getPairwiseScore('c', 'x'), 1f);
+ assertEquals(sm.getName(), "PAM250");
+ assertEquals(((ScoreMatrix) sm).getPairwiseScore('R', 'C'), -4f);
sm = models.next();
assertTrue(sm instanceof ScoreMatrix);
- assertEquals(sm.getName(), "PAM250");
- assertEquals(((ScoreMatrix) sm).getPairwiseScore('R', 'C'), -4f);
+ assertEquals(sm.getName(), "Identity (SeqSpace)");
+ assertEquals(((ScoreMatrix) sm).getPairwiseScore('R', 'C'), 0f);
+ assertEquals(((ScoreMatrix) sm).getPairwiseScore('R', 'r'), 1f);
sm = models.next();
- assertFalse(sm instanceof ScoreMatrix);
- assertEquals(sm.getName(), "PID");
+ assertTrue(sm instanceof ScoreMatrix);
+ assertEquals(sm.getName(), "DNA");
+ assertEquals(((ScoreMatrix) sm).getPairwiseScore('c', 'x'), 1f);
sm = models.next();
assertFalse(sm instanceof ScoreMatrix);
assertEquals(sm.getName(), "Sequence Feature Similarity");
+
+ sm = models.next();
+ assertFalse(sm instanceof ScoreMatrix);
+ assertEquals(sm.getName(), "PID");
}
}