X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=inline;f=test%2Fjalview%2Fstructures%2Fmodels%2FAAStructureBindingModelTest.java;h=bb81992c6b27494cc08e7c2790ca770fe526a2b3;hb=e1d9f73a2e2489b2213b9f54a7b4170b8e70cad6;hp=14667607fd3f0b9f6470820d99c4d8dc6b825259;hpb=2373f90e6077de127c55ec6cb7671d8ba2436684;p=jalview.git
diff --git a/test/jalview/structures/models/AAStructureBindingModelTest.java b/test/jalview/structures/models/AAStructureBindingModelTest.java
index 1466760..bb81992 100644
--- a/test/jalview/structures/models/AAStructureBindingModelTest.java
+++ b/test/jalview/structures/models/AAStructureBindingModelTest.java
@@ -1,3 +1,23 @@
+/*
+ * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
+ * Copyright (C) $$Year-Rel$$ The Jalview Authors
+ *
+ * This file is part of Jalview.
+ *
+ * Jalview is free software: you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation, either version 3
+ * of the License, or (at your option) any later version.
+ *
+ * Jalview is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty
+ * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Jalview. If not, see .
+ * The Jalview Authors are detailed in the 'AUTHORS' file.
+ */
package jalview.structures.models;
import static org.testng.AssertJUnit.assertEquals;
@@ -57,14 +77,13 @@ public class AAStructureBindingModelTest
/**
* Set up test conditions with three aligned sequences,
*/
- @BeforeMethod(alwaysRun = true)
+ @BeforeMethod(alwaysRun = true)
public void setUp()
{
SequenceI seq1 = new Sequence("1YCS", "-VPSQK");
SequenceI seq2 = new Sequence("3A6S", "MK-KLQ");
SequenceI seq3 = new Sequence("1OOT", "SPK-AV");
- al = new Alignment(new SequenceI[]
- { seq1, seq2, seq3 });
+ al = new Alignment(new SequenceI[] { seq1, seq2, seq3 });
al.setDataset(null);
PDBEntry[] pdbFiles = new PDBEntry[3];
@@ -73,20 +92,17 @@ public class AAStructureBindingModelTest
pdbFiles[2] = new PDBEntry("1OOT", "A", Type.PDB, "1OOT.pdb");
String[][] chains = new String[3][];
SequenceI[][] seqs = new SequenceI[3][];
- seqs[0] = new SequenceI[]
- { seq1 };
- seqs[1] = new SequenceI[]
- { seq2 };
- seqs[2] = new SequenceI[]
- { seq3 };
+ seqs[0] = new SequenceI[] { seq1 };
+ seqs[1] = new SequenceI[] { seq2 };
+ seqs[2] = new SequenceI[] { seq3 };
StructureSelectionManager ssm = new StructureSelectionManager();
- ssm.setMapping(new SequenceI[]
- { seq1 }, null, PDB_1, AppletFormatAdapter.PASTE);
- ssm.setMapping(new SequenceI[]
- { seq2 }, null, PDB_2, AppletFormatAdapter.PASTE);
- ssm.setMapping(new SequenceI[]
- { seq3 }, null, PDB_3, AppletFormatAdapter.PASTE);
+ ssm.setMapping(new SequenceI[] { seq1 }, null, PDB_1,
+ AppletFormatAdapter.PASTE);
+ ssm.setMapping(new SequenceI[] { seq2 }, null, PDB_2,
+ AppletFormatAdapter.PASTE);
+ ssm.setMapping(new SequenceI[] { seq3 }, null, PDB_3,
+ AppletFormatAdapter.PASTE);
testee = new AAStructureBindingModel(ssm, pdbFiles, seqs, chains, null)
{
@@ -97,17 +113,19 @@ public class AAStructureBindingModelTest
* fudge 'filenames' to match those generated when PDBFile parses PASTE
* data
*/
- return new String[]
- { "INLINE1YCS", "INLINE3A6S", "INLINE1OOT" };
+ return new String[] { "INLINE1YCS", "INLINE3A6S", "INLINE1OOT" };
}
+
@Override
public void updateColours(Object source)
{
}
+
@Override
public void releaseReferences(Object svl)
{
}
+
@Override
public void highlightAtoms(List atoms)
{
@@ -119,7 +137,7 @@ public class AAStructureBindingModelTest
* Verify that the method determines that columns 2, 5 and 6 of the alignment
* are alignable in structure
*/
- @Test(groups ={ "Functional" })
+ @Test(groups = { "Functional" })
public void testFindSuperposableResidues()
{
SuperposeData[] structs = new SuperposeData[al.getHeight()];
@@ -150,7 +168,7 @@ public class AAStructureBindingModelTest
assertTrue(matched[5]);
}
- @Test(groups ={ "Functional" })
+ @Test(groups = { "Functional" })
public void testFindSuperposableResidues_hiddenColumn()
{
SuperposeData[] structs = new SuperposeData[al.getHeight()];