X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=test%2Fjalview%2Fio%2FJalviewExportPropertiesTests.java;h=1d138c04ae332ac6124722fc38309d434f0ea2f1;hb=57738a1f3c19b1c3a00bd3ac5108f8cd0af32f99;hp=75cd9a13e21d4126cc35456920e40d49ad6abab1;hpb=5f4e1e4c330b045e9c8bce28ee132a0fca3834d8;p=jalview.git diff --git a/test/jalview/io/JalviewExportPropertiesTests.java b/test/jalview/io/JalviewExportPropertiesTests.java index 75cd9a1..1d138c0 100644 --- a/test/jalview/io/JalviewExportPropertiesTests.java +++ b/test/jalview/io/JalviewExportPropertiesTests.java @@ -53,8 +53,9 @@ public class JalviewExportPropertiesTests @BeforeClass(alwaysRun = true) public static void setUpBeforeClass() throws Exception { - jalview.bin.Jalview.main(new String[] { "-props", - "test/jalview/io/testProps.jvprops" }); + jalview.bin.Jalview + .main(new String[] + { "-props", "test/jalview/io/testProps.jvprops" }); } /** @@ -74,7 +75,7 @@ public class JalviewExportPropertiesTests assertTrue("Couldn't set gap character to '.'", ".".equals("" + jalview.bin.Cache.getProperty("GAP_SYMBOL"))); AlignFrame af = new jalview.io.FileLoader().LoadFileWaitTillLoaded( - "examples/uniref50.fa", FormatAdapter.FILE); + "examples/uniref50.fa", DataSourceType.FILE); assertTrue("Didn't read in the example file correctly.", af != null); assertTrue("Didn't set the gap character correctly", af.getViewport() .getAlignment().getSequenceAt(0).getCharAt(5) == '.'); @@ -85,8 +86,8 @@ public class JalviewExportPropertiesTests sg.setStartRes(1); sg.setEndRes(7); af.getViewport().setSelectionGroup(sg); - String fseqs = new FormatAdapter(af.alignPanel).formatSequences( - "FASTA", af.alignPanel, true); + String fseqs = new FormatAdapter(af.alignPanel) + .formatSequences(FileFormat.Fasta, af.alignPanel, true); assertTrue("Couldn't find '.' in the exported region\n" + fseqs, fseqs.indexOf(".") > -1); }