git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JAL-1712 fixes/tests for Castor binding of EMBL XML / show flanking
[jalview.git]
/
test
/
jalview
/
io
/
AnnotatedPDBFileInputTest.java
diff --git
a/test/jalview/io/AnnotatedPDBFileInputTest.java
b/test/jalview/io/AnnotatedPDBFileInputTest.java
index
29d5549
..
6a61d2c
100644
(file)
--- a/
test/jalview/io/AnnotatedPDBFileInputTest.java
+++ b/
test/jalview/io/AnnotatedPDBFileInputTest.java
@@
-4,6
+4,14
@@
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
+
+import java.io.File;
+
+import org.junit.AfterClass;
+import org.junit.Before;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
import jalview.datamodel.AlignmentAnnotation;
import jalview.datamodel.AlignmentI;
import jalview.datamodel.PDBEntry;
import jalview.datamodel.AlignmentAnnotation;
import jalview.datamodel.AlignmentI;
import jalview.datamodel.PDBEntry;
@@
-14,14
+22,6
@@
import jalview.gui.Desktop;
import jalview.structure.StructureMapping;
import jalview.structure.StructureSelectionManager;
import jalview.structure.StructureMapping;
import jalview.structure.StructureSelectionManager;
-import java.io.File;
-import java.util.Vector;
-
-import org.junit.AfterClass;
-import org.junit.Before;
-import org.junit.BeforeClass;
-import org.junit.Test;
-
public class AnnotatedPDBFileInputTest
{
public class AnnotatedPDBFileInputTest
{
@@
-38,8
+38,8
@@
public class AnnotatedPDBFileInputTest
AlignFrame af = loader.LoadFileWaitTillLoaded(pdbStr,
FormatAdapter.FILE);
al = af.getViewport().getAlignment();
AlignFrame af = loader.LoadFileWaitTillLoaded(pdbStr,
FormatAdapter.FILE);
al = af.getViewport().getAlignment();
- pdbId = ((PDBEntry) al.getSequenceAt(0).getDatasetSequence().getPDBId()
- .get(0)).getId();
+ pdbId = al.getSequenceAt(0).getDatasetSequence().getPDBId()
+ .get(0).getId();
}
@Test
}
@Test
@@
-194,7
+194,7
@@
public class AnnotatedPDBFileInputTest
}
assertNotNull(sq.getPDBId());
assertEquals("Expected only one PDB ID", sq.getPDBId().size(), 1);
}
assertNotNull(sq.getPDBId());
assertEquals("Expected only one PDB ID", sq.getPDBId().size(), 1);
- for (PDBEntry pdbentry : (Vector<PDBEntry>) sq.getPDBId())
+ for (PDBEntry pdbentry : sq.getPDBId())
{
System.err.println("PDB Entry " + pdbentry.getId() + " "
+ pdbentry.getFile());
{
System.err.println("PDB Entry " + pdbentry.getId() + " "
+ pdbentry.getFile());