X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=test%2Fjalview%2Fext%2Fjmol%2FJmolVsJalviewPDBParserEndToEndTest.java;h=0bc41a3c4260eed58ab7ebd90d0a699a6ea29429;hb=20d8cc2bb3e2fab2b7f637a3d523c90ceb58903d;hp=4c6fe4491ad263dfa306f718374f7b583112cee5;hpb=59d2feb135a7da8e92b68491f177159913c60244;p=jalview.git diff --git a/test/jalview/ext/jmol/JmolVsJalviewPDBParserEndToEndTest.java b/test/jalview/ext/jmol/JmolVsJalviewPDBParserEndToEndTest.java index 4c6fe44..0bc41a3 100644 --- a/test/jalview/ext/jmol/JmolVsJalviewPDBParserEndToEndTest.java +++ b/test/jalview/ext/jmol/JmolVsJalviewPDBParserEndToEndTest.java @@ -53,12 +53,17 @@ public class JmolVsJalviewPDBParserEndToEndTest JvOptionPane.setMockResponse(JvOptionPane.CANCEL_OPTION); } + /** + * + * @param args + * @j2sIgnore + */ public static void main(String[] args) { if (args == null || args[0] == null) { - System.err - .println("You must provide a PDB directory in the launch argument"); + System.err.println( + "You must provide a PDB directory in the launch argument"); return; } @@ -72,7 +77,7 @@ public class JmolVsJalviewPDBParserEndToEndTest public static void testFileParser(String testDir, String[] testFiles) { - Set failedFiles = new HashSet(); + Set failedFiles = new HashSet<>(); int totalSeqScanned = 0, totalFail = 0; for (String pdbStr : testFiles) { @@ -81,7 +86,8 @@ public class JmolVsJalviewPDBParserEndToEndTest JmolParser jtest = null; try { - mctest = new PDBfile(false, false, false, testFile, DataSourceType.FILE); + mctest = new PDBfile(false, false, false, testFile, + DataSourceType.FILE); jtest = new JmolParser(testFile, DataSourceType.FILE); } catch (IOException e) { @@ -113,13 +119,12 @@ public class JmolVsJalviewPDBParserEndToEndTest int count = 0; System.out.println("\n\nTotal sequence Scanned : " + totalSeqScanned); - System.out.println("Total sequence passed : " - + (totalSeqScanned - totalFail)); + System.out.println( + "Total sequence passed : " + (totalSeqScanned - totalFail)); System.out.println("Total sequence failed : " + totalFail); - System.out - .println("Success rate: " - + ((totalSeqScanned - totalFail) * 100) - / totalSeqScanned + "%"); + System.out.println("Success rate: " + + ((totalSeqScanned - totalFail) * 100) / totalSeqScanned + + "%"); System.out.println("\nList of " + failedFiles.size() + " file(s) with sequence diffs:"); for (String problemFile : failedFiles)