X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=test%2Fjalview%2Fio%2FTCoffeeScoreFileTest.java;h=6d11ebed96e5bb5db5605a29337769e3ad616b01;hb=80c223c45fde0899c9794e887801dd82fffd3452;hp=3147054460f73962b42145e6004369ae743421cb;hpb=74aab3b256df66c0dc8785c349565c191d3ef0f8;p=jalview.git diff --git a/test/jalview/io/TCoffeeScoreFileTest.java b/test/jalview/io/TCoffeeScoreFileTest.java index 3147054..6d11ebe 100644 --- a/test/jalview/io/TCoffeeScoreFileTest.java +++ b/test/jalview/io/TCoffeeScoreFileTest.java @@ -26,7 +26,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 { @@ -34,7 +42,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()); @@ -56,7 +64,7 @@ public class TCoffeeScoreFileTest { @Test - public void testWrongFile() { + public void testWrongFile() { try { TCoffeeScoreFile result = new TCoffeeScoreFile(ALIGN_FILE.getPath(), FormatAdapter.FILE); assertFalse(result.isValid()); @@ -173,7 +181,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());