import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertNull;
-import jalview.gui.JvOptionPane;
-
import java.util.Collections;
import java.util.List;
import java.util.Map;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
+import jalview.gui.JvOptionPane;
+
public class ResiduePropertiesTest
{
*/
residues = ResidueProperties.getResidues(true, true);
Collections.sort(residues);
- assertEquals("[A, C, G, I, N, R, T, U, X, Y]", residues.toString());
+ assertEquals("[A, B, C, D, G, H, I, K, M, N, R, S, T, U, V, W, X, Y]",
+ residues.toString());
}
@Test(groups = { "Functional" })
}
@Test(groups = { "Functional" })
+ public void testGetDssp3State()
+ {
+ assertNull(ResidueProperties.getDssp3state(null));
+ assertEquals("", ResidueProperties.getDssp3state(""));
+ String foo = "0123 []<>abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
+ String bar = " E E HHH ";
+ assertEquals(bar, ResidueProperties.getDssp3state(foo));
+ }
+
+ @Test(groups = { "Functional" })
public void testPhysicoChemicalProperties()
{
checkProperty("aromatic", "FYWH-*");