X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=test%2Fjalview%2Fio%2FAnnotatedPDBFileInputTest.java;h=689bd59b014b1fbe2bc49cbcce985ac53b5675f0;hb=57738a1f3c19b1c3a00bd3ac5108f8cd0af32f99;hp=8eb37968f39d1912d8b860577a125378ae46c6de;hpb=e7338a61f3ce96dadf44ac80b2b32cc5ba4b94c8;p=jalview.git diff --git a/test/jalview/io/AnnotatedPDBFileInputTest.java b/test/jalview/io/AnnotatedPDBFileInputTest.java index 8eb3796..689bd59 100644 --- a/test/jalview/io/AnnotatedPDBFileInputTest.java +++ b/test/jalview/io/AnnotatedPDBFileInputTest.java @@ -182,10 +182,9 @@ public class AnnotatedPDBFileInputTest break; } } - assertTrue( - "Couldn't find sequence associated annotation " - + aa.label - + " on the sequence it is associated with.\nSequence associated editing will fail.", + assertTrue("Couldn't find sequence associated annotation " + + aa.label + + " on the sequence it is associated with.\nSequence associated editing will fail.", found); } } @@ -197,8 +196,9 @@ public class AnnotatedPDBFileInputTest @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" }); } /** @@ -218,8 +218,8 @@ public class AnnotatedPDBFileInputTest String inFile = "examples/1gaq.txt"; String tfile = File.createTempFile("JalviewTest", ".jvp") .getAbsolutePath(); - AlignFrame af = new jalview.io.FileLoader().LoadFileWaitTillLoaded( - inFile, DataSourceType.FILE); + AlignFrame af = new jalview.io.FileLoader() + .LoadFileWaitTillLoaded(inFile, DataSourceType.FILE); assertTrue("Didn't read input file " + inFile, af != null); af.saveAlignment(tfile, FileFormat.Jalview); assertTrue("Failed to store as a project.", @@ -237,12 +237,12 @@ public class AnnotatedPDBFileInputTest sq = sq.getDatasetSequence(); } assertNotNull(sq.getAllPDBEntries()); - assertEquals("Expected only one PDB ID", 1, sq.getAllPDBEntries() - .size()); + assertEquals("Expected only one PDB ID", 1, + sq.getAllPDBEntries().size()); for (PDBEntry pdbentry : sq.getAllPDBEntries()) { - System.err.println("PDB Entry " + pdbentry.getId() + " " - + pdbentry.getFile()); + System.err.println( + "PDB Entry " + pdbentry.getId() + " " + pdbentry.getFile()); boolean exists = false, found = false; for (AlignmentAnnotation ana : sq.getAnnotation()) { @@ -259,8 +259,10 @@ public class AnnotatedPDBFileInputTest } if (exists) { - assertTrue("Couldn't find any annotation for " + pdbentry.getId() - + " (file handle " + pdbentry.getFile() + ")", found); + assertTrue( + "Couldn't find any annotation for " + pdbentry.getId() + + " (file handle " + pdbentry.getFile() + ")", + found); } } }