2424 */
2525package org .biojava .nbio .structure .test ;
2626
27- import org .biojava .nbio .structure .*;
28- import org .biojava .nbio .structure .align .util .AtomCache ;
29- import org .biojava .nbio .structure .io .FileParsingParameters ;
30- import org .biojava .nbio .structure .io .PDBFileParser ;
31- import org .biojava .nbio .structure .test .util .StringManipulationTestsHelper ;
32- import org .junit .Before ;
33- import org .junit .Test ;
27+ import static org .junit .Assert .assertEquals ;
28+ import static org .junit .Assert .assertNull ;
29+ import static org .junit .Assert .assertTrue ;
3430
3531import java .io .BufferedReader ;
3632import java .io .IOException ;
3733import java .io .InputStream ;
3834import java .io .StringReader ;
3935
40- import static org .junit .Assert .*;
36+ import org .biojava .nbio .structure .Atom ;
37+ import org .biojava .nbio .structure .Chain ;
38+ import org .biojava .nbio .structure .ChainImpl ;
39+ import org .biojava .nbio .structure .Group ;
40+ import org .biojava .nbio .structure .JournalArticle ;
41+ import org .biojava .nbio .structure .PDBHeader ;
42+ import org .biojava .nbio .structure .Site ;
43+ import org .biojava .nbio .structure .Structure ;
44+ import org .biojava .nbio .structure .StructureException ;
45+ import org .biojava .nbio .structure .StructureTools ;
46+ import org .biojava .nbio .structure .align .util .AtomCache ;
47+ import org .biojava .nbio .structure .io .FileParsingParameters ;
48+ import org .biojava .nbio .structure .io .PDBFileParser ;
49+ import org .biojava .nbio .structure .test .util .StringManipulationTestsHelper ;
50+ import org .junit .Before ;
51+ import org .junit .Test ;
4152
4253public class PDBFileParserTest {
4354
@@ -55,7 +66,8 @@ public void test2LetterResidueName() throws IOException {
5566 // from 1a4w:
5667 String t =
5768 "HETATM 2242 NA NA L 541 5.845 -14.122 30.560 0.88 23.48 NA" +newline +
58- "HETATM 2243 NA NA L 542 18.411 -16.475 38.464 0.88 24.77 NA" +newline ;
69+ "HETATM 2243 NA NA L 542 18.411 -16.475 38.464 0.88 24.77 NA" +newline +
70+ "TER" +newline ;
5971 BufferedReader br = new BufferedReader (new StringReader (t ));
6072 Structure s = parser .parsePDBFile (br );
6173 String pdb = s .toPDB ();
@@ -85,7 +97,8 @@ public void testCorrectFloatingPointDisplay() throws IOException {
8597 "ATOM 11 C CYS L 1 9.580 14.524 21.006 1.00 18.64 C" +newline +
8698 "ATOM 12 O CYS L 1 9.110 15.220 21.912 1.00 19.03 O" +newline +
8799 "ATOM 13 CB CYS L 1 12.117 14.468 20.771 1.00 21.77 C" +newline +
88- "ATOM 14 SG CYS L 1 12.247 14.885 22.538 1.00 20.55 S" +newline ;
100+ "ATOM 14 SG CYS L 1 12.247 14.885 22.538 1.00 20.55 S" +newline +
101+ "TER" +newline ;
89102
90103 BufferedReader br = new BufferedReader (new StringReader (t ));
91104
@@ -527,7 +540,8 @@ public void testCorrectAtomNamePadding() throws IOException {
527540 "HETATM 2282 C22 QWE H 373 16.864 -13.556 14.739 1.00 42.63 C" +newline +
528541 "HETATM 2283 C2'1 QWE H 373 16.825 -12.903 16.107 1.00 40.59 C" +newline +
529542 "HETATM 2284 C42 QWE H 373 18.146 -14.734 13.451 1.00 43.96 C" +newline +
530- "HETATM 2285 N3 QWE H 373 18.049 -13.554 14.106 1.00 43.46 N" +newline ;
543+ "HETATM 2285 N3 QWE H 373 18.049 -13.554 14.106 1.00 43.46 N" +newline +
544+ "TER" +newline ;
531545
532546 BufferedReader br = new BufferedReader (new StringReader (atomLines ));
533547
0 commit comments