@Test public void testSetDescription() { SubstitutionMatrix<AminoAcidCompound> matrix = SimpleSubstitutionMatrix.getBlosum62(); assertEquals(matrix.getDescription().substring(0, 2), "# "); matrix.setDescription("blah"); assertEquals(matrix.getDescription().substring(0, 2), "bl"); }
@Test public void testSetName() { SubstitutionMatrix<AminoAcidCompound> matrix = SimpleSubstitutionMatrix.getBlosum62(); assertEquals(matrix.getName(), "blosum62"); matrix.setName("blah"); assertEquals(matrix.getName(), "blah"); }
@Test() public void testSimpleSubstitutionMatrix() { SubstitutionMatrix<AminoAcidCompound> matrix = SimpleSubstitutionMatrix.getBlosum62(); assertEquals(matrix.getCompoundSet(), AminoAcidCompoundSet.getAminoAcidCompoundSet()); assertEquals(matrix.getName(), "blosum62"); assertEquals(matrix.getMaxValue(), 11); assertEquals(matrix.getMinValue(), -4); }