Merge branch 'JAL-1445' into develop
[jalview.git] / test / jalview / io / TCoffeeScoreFileTest.java
index 3b6c30a..f5bfe12 100644 (file)
@@ -27,7 +27,15 @@ import java.io.FileNotFoundException;
 import java.io.IOException;
 import java.util.List;
 
+import javax.xml.parsers.ParserConfigurationException;
+
 import org.junit.Test;
+import org.xml.sax.SAXException;
+
+import fr.orsay.lri.varna.exceptions.ExceptionFileFormatOrSyntax;
+import fr.orsay.lri.varna.exceptions.ExceptionLoadingFailed;
+import fr.orsay.lri.varna.exceptions.ExceptionPermissionDenied;
+import fr.orsay.lri.varna.exceptions.ExceptionUnmatchedClosingParentheses;
 
 public class TCoffeeScoreFileTest {
 
@@ -35,7 +43,7 @@ public class TCoffeeScoreFileTest {
     final static File ALIGN_FILE = new File("test/jalview/io/tcoffee.fasta_aln");
        
        @Test
-       public void testReadHeader() throws IOException, FileNotFoundException {
+       public void testReadHeader() throws IOException {
 
            TCoffeeScoreFile scoreFile = new TCoffeeScoreFile(SCORE_FILE.getPath(),AppletFormatAdapter.FILE);
            assertTrue(scoreFile.getWarningMessage(),scoreFile.isValid());
@@ -57,7 +65,7 @@ public class TCoffeeScoreFileTest {
        
        
        @Test
-       public void testWrongFile() {
+       public void testWrongFile()  {
            try {
                        TCoffeeScoreFile result = new TCoffeeScoreFile(ALIGN_FILE.getPath(), FormatAdapter.FILE);
                        assertFalse(result.isValid());
@@ -174,7 +182,7 @@ public class TCoffeeScoreFileTest {
        } 
        
        @Test
-       public void testHeightAndWidthWithResidueNumbers() throws IOException {
+       public void testHeightAndWidthWithResidueNumbers() throws Exception {
                String file = "test/jalview/io/tcoffee.score_ascii_with_residue_numbers";
                TCoffeeScoreFile result = new TCoffeeScoreFile(file, FormatAdapter.FILE);
                assertTrue(result.isValid());