import static org.testng.AssertJUnit.assertTrue;
import jalview.bin.Cache;
+import jalview.bin.Console;
import jalview.datamodel.AlignmentAnnotation;
import jalview.datamodel.AlignmentI;
import jalview.gui.JvOptionPane;
public static void setUpBeforeClass() throws Exception
{
Cache.loadProperties("test/jalview/io/testProps.jvprops");
- Cache.initLogger();
+ Console.initLogger();
disc = JalviewJabawsTestUtils.getJabawsDiscoverer();
while (disc.isRunning())
disc2.startDiscoverer();
while (disc2.isRunning())
{
- if (svc.getServiceTypeURI().toLowerCase(Locale.ROOT).contains("iupredws"))
+ if (svc.getServiceTypeURI().toLowerCase(Locale.ROOT)
+ .contains("iupredws"))
{
iupreds.add(svc);
}
assertTrue("Couldn't discover any IUPred services to use to test.",
iupreds.size() > 0);
jalview.io.FileLoader fl = new jalview.io.FileLoader(false);
- af = fl.LoadFileWaitTillLoaded(testseqs, jalview.io.DataSourceType.FILE);
+ af = fl.LoadFileWaitTillLoaded(testseqs,
+ jalview.io.DataSourceType.FILE);
assertNotNull("Couldn't load test data ('" + testseqs + "')", af);
}
{
try
{
- String aligfileout = FileFormat.Pfam.getWriter(al).print(
- al.getSequencesArray(), true);
+ String aligfileout = FileFormat.Pfam.getWriter(al)
+ .print(al.getSequencesArray(), true);
String anfileout = new AnnotationFile()
.printAnnotationsForAlignment(al);
- assertTrue(
- "Test "
- + testname
- + "\nAlignment annotation file was not regenerated. Null string",
+ assertTrue("Test " + testname
+ + "\nAlignment annotation file was not regenerated. Null string",
anfileout != null);
- assertTrue(
- "Test "
- + testname
- + "\nAlignment annotation file was not regenerated. Empty string",
+ assertTrue("Test " + testname
+ + "\nAlignment annotation file was not regenerated. Empty string",
anfileout.length() > "JALVIEW_ANNOTATION".length());
- System.out.println("Output annotation file:\n" + anfileout
- + "\n<<EOF\n");
+ System.out.println(
+ "Output annotation file:\n" + anfileout + "\n<<EOF\n");
AlignmentI al_new = new FormatAdapter().readFile(aligfileout,
DataSourceType.PASTE, FileFormat.Pfam);
- assertTrue(
- "Test "
- + testname
- + "\nregenerated annotation file did not annotate alignment.",
+ assertTrue("Test " + testname
+ + "\nregenerated annotation file did not annotate alignment.",
new AnnotationFile().readAnnotationFile(al_new, anfileout,
DataSourceType.PASTE));
{
e.printStackTrace();
}
- Assert.fail("Test "
- + testname
+ Assert.fail("Test " + testname
+ "\nCouldn't complete Annotation file roundtrip input/output/input test.");
}