X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=test%2Fjalview%2Fio%2FTCoffeeScoreFileTest.java;h=a46591c4eddd17909ad1f029674f3d42fb62ebd9;hb=ee198b3ca3687f18a2ee186f4e7c7330f4ea30f0;hp=181aabdd8e7bc951dbf63e899da41cb80c3895ab;hpb=0bec4854366c4bc4608ed0d7dc1506fc6afe2285;p=jalview.git diff --git a/test/jalview/io/TCoffeeScoreFileTest.java b/test/jalview/io/TCoffeeScoreFileTest.java index 181aabd..a46591c 100644 --- a/test/jalview/io/TCoffeeScoreFileTest.java +++ b/test/jalview/io/TCoffeeScoreFileTest.java @@ -45,7 +45,7 @@ public class TCoffeeScoreFileTest { TCoffeeScoreFile scoreFile = new TCoffeeScoreFile(SCORE_FILE.getPath(), - AppletFormatAdapter.FILE); + DataSourceType.FILE); AssertJUnit.assertTrue(scoreFile.getWarningMessage(), scoreFile.isValid()); @@ -73,7 +73,7 @@ public class TCoffeeScoreFileTest try { TCoffeeScoreFile result = new TCoffeeScoreFile(ALIGN_FILE.getPath(), - FormatAdapter.FILE); + DataSourceType.FILE); AssertJUnit.assertFalse(result.isValid()); } catch (IOException x) { @@ -86,7 +86,7 @@ public class TCoffeeScoreFileTest public void testHeightAndWidth() throws IOException { TCoffeeScoreFile result = new TCoffeeScoreFile(SCORE_FILE.getPath(), - FormatAdapter.FILE); + DataSourceType.FILE); AssertJUnit.assertTrue(result.isValid()); AssertJUnit.assertEquals(8, result.getHeight()); AssertJUnit.assertEquals(83, result.getWidth()); @@ -107,7 +107,7 @@ public class TCoffeeScoreFileTest + "1QCF 99999999999999999999999999974-------2---------24\n" + "cons 999999999999999999999999999851000110321100001134\n" + "\n" + "\n"; - FileParse source = new FileParse(BLOCK, FormatAdapter.PASTE); + FileParse source = new FileParse(BLOCK, DataSourceType.PASTE); Block block = TCoffeeScoreFile.readBlock(source, 0); AssertJUnit.assertNotNull(block); @@ -145,7 +145,7 @@ public class TCoffeeScoreFileTest { TCoffeeScoreFile parser = new TCoffeeScoreFile(SCORE_FILE.getPath(), - FormatAdapter.FILE); + DataSourceType.FILE); AssertJUnit .assertEquals( @@ -190,7 +190,7 @@ public class TCoffeeScoreFileTest { TCoffeeScoreFile parser = new TCoffeeScoreFile(SCORE_FILE.getPath(), - FormatAdapter.FILE); + DataSourceType.FILE); AssertJUnit.assertTrue(parser.getWarningMessage(), parser.isValid()); List scores = parser.getScoresList(); AssertJUnit @@ -237,7 +237,7 @@ public class TCoffeeScoreFileTest { TCoffeeScoreFile parser = new TCoffeeScoreFile(SCORE_FILE.getPath(), - FormatAdapter.FILE); + DataSourceType.FILE); AssertJUnit.assertTrue(parser.getWarningMessage(), parser.isValid()); byte[][] scores = parser.getScoresArray(); @@ -267,7 +267,7 @@ public class TCoffeeScoreFileTest public void testHeightAndWidthWithResidueNumbers() throws Exception { String file = "test/jalview/io/tcoffee.score_ascii_with_residue_numbers"; - TCoffeeScoreFile result = new TCoffeeScoreFile(file, FormatAdapter.FILE); + TCoffeeScoreFile result = new TCoffeeScoreFile(file, DataSourceType.FILE); AssertJUnit.assertTrue(result.isValid()); AssertJUnit.assertEquals(5, result.getHeight()); AssertJUnit.assertEquals(84, result.getWidth());