<booleanAttribute key="org.eclipse.ant.ui.ATTR_TARGETS_UPDATED" value="true"/>
<booleanAttribute key="org.eclipse.ant.ui.DEFAULT_VM_INSTALL" value="false"/>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
-<listEntry value="/jalview/build.xml"/>
+<listEntry value="/jalview"/>
</listAttribute>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
-<listEntry value="1"/>
+<listEntry value="4"/>
</listAttribute>
<booleanAttribute key="org.eclipse.debug.ui.ATTR_LAUNCH_IN_BACKGROUND" value="false"/>
<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="org.eclipse.ant.ui.AntClasspathProvider"/>
editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true
formatter_profile=_Jalview
formatter_settings_version=12
+org.eclipse.jdt.ui.ignorelowercasenames=true
+org.eclipse.jdt.ui.importorder=jalview;java;javax;org;com;
+org.eclipse.jdt.ui.ondemandthreshold=99
+org.eclipse.jdt.ui.staticondemandthreshold=99
sp_cleanup.add_default_serial_version_id=true
sp_cleanup.add_generated_serial_version_id=false
sp_cleanup.add_missing_annotations=true
package MCview;
import static org.testng.AssertJUnit.assertEquals;
-import org.testng.annotations.Test;
+
import org.testng.Assert;
+import org.testng.annotations.Test;
public class AtomTest
{
package MCview;
import static org.testng.AssertJUnit.assertEquals;
+
import org.testng.annotations.Test;
public class BondTest
package MCview;
-import static org.testng.AssertJUnit.assertSame;
import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertFalse;
+import static org.testng.AssertJUnit.assertSame;
import static org.testng.AssertJUnit.assertTrue;
-import org.testng.annotations.Test;
-import java.awt.Color;
-import java.util.Vector;
import jalview.analysis.AlignSeq;
import jalview.datamodel.AlignmentAnnotation;
import jalview.schemes.ColourSchemeI;
import jalview.schemes.TaylorColourScheme;
+import java.awt.Color;
+import java.util.Vector;
+
+import org.testng.annotations.Test;
+
public class PDBChainTest
{
PDBChain c = new PDBChain("1GAQ", "A");
+
Atom a1 = new Atom(1f, 2f, 3f);
Atom a2 = new Atom(5f, 6f, 4f);
import static org.testng.AssertJUnit.assertSame;
import static org.testng.AssertJUnit.assertTrue;
-import java.io.IOException;
-
-import org.testng.annotations.Test;
-
import jalview.datamodel.Alignment;
import jalview.datamodel.AlignmentAnnotation;
import jalview.datamodel.AlignmentI;
import jalview.datamodel.SequenceI;
import jalview.io.AppletFormatAdapter;
+import java.io.IOException;
+
+import org.testng.annotations.Test;
+
public class PDBfileTest
{
@Test
package MCview;
-import static org.testng.AssertJUnit.assertSame;
import static org.testng.AssertJUnit.assertNull;
-import org.testng.annotations.Test;
+import static org.testng.AssertJUnit.assertSame;
+
import java.util.Vector;
+import org.testng.annotations.Test;
+
public class ResidueTest
{
package jalview.analysis;
import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertNull;
-import org.testng.annotations.Test;
+
import jalview.datamodel.Sequence;
import jalview.datamodel.SequenceI;
import java.util.Hashtable;
+import org.testng.annotations.Test;
+
public class AAFrequencyTest
{
private static final String C = AAFrequency.MAXCOUNT;
import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertFalse;
import static org.testng.AssertJUnit.assertTrue;
-import org.testng.annotations.Test;
-import org.testng.annotations.BeforeMethod;
+
+import jalview.datamodel.AlignmentAnnotation;
+import jalview.datamodel.AlignmentI;
+import jalview.datamodel.Annotation;
+import jalview.datamodel.SequenceI;
+import jalview.io.AppletFormatAdapter;
+
import java.io.IOException;
import java.util.ArrayList;
import java.util.BitSet;
import java.util.List;
import java.util.Map;
-import jalview.datamodel.AlignmentAnnotation;
-import jalview.datamodel.AlignmentI;
-import jalview.datamodel.Annotation;
-import jalview.datamodel.SequenceI;
-import jalview.io.AppletFormatAdapter;
+import org.testng.annotations.BeforeMethod;
+import org.testng.annotations.Test;
public class AlignmentAnnotationUtilsTest
{
*/
package jalview.analysis;
-import static org.testng.AssertJUnit.assertSame;
import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertFalse;
-import static org.testng.AssertJUnit.assertTrue;
import static org.testng.AssertJUnit.assertNull;
-import org.testng.annotations.Test;
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.LinkedHashSet;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
+import static org.testng.AssertJUnit.assertSame;
+import static org.testng.AssertJUnit.assertTrue;
import jalview.datamodel.AlignedCodonFrame;
import jalview.datamodel.Alignment;
import jalview.util.MapList;
import jalview.util.MappingUtils;
-public class AlignmentUtilsTests
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.LinkedHashSet;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+
+import org.testng.annotations.Test;
+
+public class AlignmentUtilsTests
{
// @formatter:off
private static final String TEST_DATA =
import static org.testng.AssertJUnit.assertEquals;
+import jalview.analysis.AnnotationSorter.SequenceAnnotationOrder;
+import jalview.datamodel.Alignment;
+import jalview.datamodel.AlignmentAnnotation;
+import jalview.datamodel.Sequence;
+import jalview.datamodel.SequenceI;
+
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
-import jalview.analysis.AnnotationSorter.SequenceAnnotationOrder;
-import jalview.datamodel.Alignment;
-import jalview.datamodel.AlignmentAnnotation;
-import jalview.datamodel.Sequence;
-import jalview.datamodel.SequenceI;
-
public class AnnotationSorterTest
{
private static final int NUM_SEQS = 6;
import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertTrue;
-import org.testng.annotations.Test;
+
import java.util.Arrays;
+import org.testng.annotations.Test;
+
public class CodingUtilsTest
{
package jalview.analysis;
-import static org.testng.AssertJUnit.assertSame;
import static org.testng.AssertJUnit.assertEquals;
-import org.testng.annotations.Test;
+import static org.testng.AssertJUnit.assertSame;
+
import jalview.datamodel.DBRefEntry;
+import org.testng.annotations.Test;
+
public class CrossRefTest
{
@Test
import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertNotNull;
import static org.testng.AssertJUnit.assertTrue;
-import org.testng.annotations.Test;
+
import jalview.api.AlignViewportI;
import jalview.datamodel.AlignedCodon;
import jalview.datamodel.Alignment;
import java.io.IOException;
+import org.testng.annotations.Test;
+
public class DnaTest
{
// @formatter:off
package jalview.analysis;
-import org.testng.annotations.Test;
-import org.testng.AssertJUnit;
import jalview.datamodel.Alignment;
import jalview.datamodel.AlignmentI;
import jalview.datamodel.ColumnSelection;
import java.util.ArrayList;
import java.util.Arrays;
+import org.testng.AssertJUnit;
+import org.testng.annotations.Test;
+
public class GroupingTest
{
Sequence s1 = new Sequence("s1", "AAAADDDDEEEE");
import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertNull;
-import org.testng.annotations.Test;
-import org.testng.annotations.BeforeMethod;
-import java.util.List;
import jalview.datamodel.Alignment;
import jalview.datamodel.AlignmentAnnotation;
import jalview.datamodel.Sequence;
import jalview.datamodel.SequenceI;
+import java.util.List;
+
+import org.testng.annotations.BeforeMethod;
+import org.testng.annotations.Test;
+
public class ParsePropertiesTest
{
import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertNull;
-import org.testng.annotations.Test;
-import org.testng.annotations.BeforeMethod;
-import java.io.PrintStream;
import jalview.datamodel.Mapping;
import jalview.datamodel.Sequence;
import jalview.datamodel.SequenceI;
+import java.io.PrintStream;
+
+import org.testng.annotations.BeforeMethod;
+import org.testng.annotations.Test;
+
/**
* Test the alignment -> Mapping routines
*
package jalview.analysis.scoremodels;
-import org.testng.annotations.Test;
-import org.testng.AssertJUnit;
import jalview.datamodel.AlignmentI;
import jalview.datamodel.SequenceFeature;
import jalview.datamodel.SequenceI;
import jalview.io.FileLoader;
import jalview.io.FormatAdapter;
+import org.testng.AssertJUnit;
+import org.testng.annotations.Test;
+
public class FeatureScoreModelTest
{
public static String alntestFile = "FER1_MESCR/72-76 DVYIL\nFER1_SPIOL/71-75 DVYIL\nFER3_RAPSA/21-25 DVYVL\nFER1_MAIZE/73-77 DVYIL\n";
import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertSame;
-import java.util.Map;
-
-import org.testng.annotations.BeforeMethod;
-import org.testng.annotations.Test;
-
import jalview.commands.EditCommand.Action;
import jalview.commands.EditCommand.Edit;
import jalview.datamodel.Alignment;
import jalview.datamodel.Sequence;
import jalview.datamodel.SequenceI;
+import java.util.Map;
+
+import org.testng.annotations.BeforeMethod;
+import org.testng.annotations.Test;
+
/**
* Unit tests for EditCommand
*
import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertNull;
-import org.testng.annotations.Test;
+
import jalview.util.MapList;
import java.util.Arrays;
+import org.testng.annotations.Test;
+
public class AlignedCodonFrameTest
{
import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertFalse;
-import org.testng.annotations.Test;
-import org.testng.Assert;
+
import jalview.util.MapList;
import java.util.Iterator;
+import org.testng.Assert;
+import org.testng.annotations.Test;
+
/**
* Unit tests for Mapping$AlignedCodonIterator
*
import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertFalse;
import static org.testng.AssertJUnit.assertTrue;
+
import org.testng.annotations.Test;
public class AlignedCodonTest
import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertNull;
-import org.testng.annotations.Test;
+
import jalview.analysis.AlignSeq;
import jalview.io.AppletFormatAdapter;
+import org.testng.annotations.Test;
+
public class AlignmentAnnotationTests
{
@Test
import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertFalse;
import static org.testng.AssertJUnit.assertTrue;
-import org.testng.annotations.Test;
-import org.testng.annotations.BeforeMethod;
+
import jalview.io.AppletFormatAdapter;
import jalview.io.FormatAdapter;
import jalview.util.MapList;
import java.io.IOException;
import java.util.Iterator;
+import org.testng.annotations.BeforeMethod;
+import org.testng.annotations.Test;
+
/**
* Unit tests for Alignment datamodel.
*
package jalview.datamodel;
import static org.testng.AssertJUnit.assertEquals;
-import org.testng.annotations.Test;
+
import java.util.List;
+import org.testng.annotations.Test;
+
public class ColumnSelectionTest
{
import static org.testng.AssertJUnit.assertFalse;
import static org.testng.AssertJUnit.assertTrue;
-import org.testng.annotations.Test;
+
import jalview.util.MapList;
+import org.testng.annotations.Test;
+
public class DBRefEntryTest
{
package jalview.datamodel;
import static org.testng.AssertJUnit.assertEquals;
-import org.testng.annotations.Test;
-import java.util.Arrays;
import jalview.util.MapList;
+import java.util.Arrays;
+
+import org.testng.annotations.Test;
+
/**
* Test class refactored from main method
*/
package jalview.datamodel;
import static org.testng.AssertJUnit.assertTrue;
+
import org.testng.annotations.AfterMethod;
-import org.testng.annotations.Test;
import org.testng.annotations.BeforeMethod;
+import org.testng.annotations.Test;
public class PDBEntryTest
{
package jalview.datamodel;
import static org.testng.AssertJUnit.assertEquals;
+
import org.testng.annotations.Test;
public class SearchResultsTest
package jalview.datamodel;
-import static org.testng.AssertJUnit.assertSame;
import static org.testng.AssertJUnit.assertEquals;
-import static org.testng.AssertJUnit.assertTrue;
import static org.testng.AssertJUnit.assertNull;
-import org.testng.annotations.Test;
-import org.testng.annotations.BeforeMethod;
+import static org.testng.AssertJUnit.assertSame;
+import static org.testng.AssertJUnit.assertTrue;
+
import java.util.Arrays;
import java.util.List;
+import org.testng.annotations.BeforeMethod;
+import org.testng.annotations.Test;
+
public class SequenceTest
{
SequenceI seq;
import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertFalse;
-import static org.testng.AssertJUnit.assertTrue;
import static org.testng.AssertJUnit.assertNull;
-import org.testng.annotations.Test;
+import static org.testng.AssertJUnit.assertTrue;
+
+import jalview.datamodel.DBRefEntry;
+
import java.io.StringReader;
import java.util.Vector;
-import jalview.datamodel.DBRefEntry;
+import org.testng.annotations.Test;
public class EmblFileTest
{
import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertTrue;
-import org.testng.annotations.Test;
-import org.testng.annotations.BeforeMethod;
-import java.util.Vector;
-
-import MCview.PDBfile;
import jalview.bin.Cache;
import jalview.datamodel.Alignment;
import jalview.io.AppletFormatAdapter;
import jalview.io.FileLoader;
+import java.util.Vector;
+
+import org.testng.annotations.BeforeMethod;
+import org.testng.annotations.Test;
+
+import MCview.PDBfile;
+
/**
* @author jimp
*
import static org.testng.AssertJUnit.assertTrue;
+import jalview.datamodel.AlignmentI;
+import jalview.datamodel.SequenceI;
+import jalview.io.FastaFile;
+import jalview.io.FormatAdapter;
+
import java.io.BufferedReader;
import java.io.File;
import java.io.Reader;
import compbio.util.FileUtil;
-import jalview.datamodel.AlignmentI;
-import jalview.datamodel.SequenceI;
-import jalview.io.FastaFile;
-import jalview.io.FormatAdapter;
-
public class TestAnnotate3D
{
import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertTrue;
-import org.testng.annotations.Test;
+
import java.awt.Color;
import java.util.Arrays;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
+import org.testng.annotations.Test;
+
public class ChimeraCommandsTest
{
@Test
import static org.testng.AssertJUnit.assertFalse;
import static org.testng.AssertJUnit.assertTrue;
+
import org.testng.annotations.Test;
+
import ext.edu.ucsf.rbvi.strucviz2.ChimeraManager;
import ext.edu.ucsf.rbvi.strucviz2.StructureManager;
package jalview.ext.rbvi.chimera;
import static org.testng.AssertJUnit.assertTrue;
-import org.testng.annotations.AfterClass;
-import org.testng.annotations.Test;
-import org.testng.annotations.BeforeClass;
+
import jalview.api.structures.JalviewStructureDisplayI;
import jalview.datamodel.SequenceI;
import jalview.gui.AlignFrame;
import jalview.gui.StructureViewer.ViewerType;
import jalview.io.FormatAdapter;
+import org.testng.annotations.AfterClass;
+import org.testng.annotations.BeforeClass;
+import org.testng.annotations.Test;
+
public class JalviewChimeraView
{
package jalview.gui;
-import static org.testng.AssertJUnit.assertSame;
import static org.testng.AssertJUnit.assertEquals;
-import org.testng.annotations.Test;
-import org.testng.annotations.BeforeMethod;
+import static org.testng.AssertJUnit.assertSame;
+
import jalview.datamodel.Alignment;
import jalview.datamodel.AlignmentI;
import jalview.datamodel.PDBEntry;
import jalview.datamodel.Sequence;
import jalview.datamodel.SequenceI;
+import org.testng.annotations.BeforeMethod;
+import org.testng.annotations.Test;
+
public class AlignViewportTest
{
import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertFalse;
import static org.testng.AssertJUnit.assertTrue;
-import org.testng.annotations.Test;
-import org.testng.annotations.BeforeMethod;
+
+import jalview.analysis.AnnotationSorter.SequenceAnnotationOrder;
+import jalview.bin.Cache;
+import jalview.datamodel.AlignmentAnnotation;
+import jalview.datamodel.AlignmentI;
+import jalview.datamodel.Annotation;
+import jalview.datamodel.SequenceGroup;
+import jalview.datamodel.SequenceI;
+import jalview.io.AppletFormatAdapter;
+import jalview.util.MessageManager;
+
import java.awt.BorderLayout;
import java.awt.Checkbox;
import java.awt.Component;
import javax.swing.JButton;
import javax.swing.JPanel;
-import jalview.analysis.AnnotationSorter.SequenceAnnotationOrder;
-import jalview.bin.Cache;
-import jalview.datamodel.AlignmentAnnotation;
-import jalview.datamodel.AlignmentI;
-import jalview.datamodel.Annotation;
-import jalview.datamodel.SequenceGroup;
-import jalview.datamodel.SequenceI;
-import jalview.io.AppletFormatAdapter;
-import jalview.util.MessageManager;
+import org.testng.annotations.BeforeMethod;
+import org.testng.annotations.Test;
/**
* Unit tests for AnnotationChooser
package jalview.gui;
-import org.testng.annotations.Test;
import java.awt.Canvas;
import java.awt.Font;
import java.awt.FontMetrics;
+import org.testng.annotations.Test;
+
public class FontChooserTest
{
package jalview.gui;
import static org.testng.AssertJUnit.assertTrue;
-import org.testng.annotations.Test;
+
import jalview.gui.Help.HelpId;
import java.net.URL;
import javax.help.HelpSetException;
import javax.help.Map;
+import org.testng.annotations.Test;
+
public class HelpTest
{
@Test
*/
package jalview.gui;
+import jalview.bin.Cache;
+
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
-import jalview.bin.Cache;
-
public class JAL1353bugdemo
{
package jalview.gui;
import static org.testng.AssertJUnit.assertEquals;
-import org.testng.annotations.Test;
+
import javax.swing.JScrollBar;
+import org.testng.annotations.Test;
+
public class JvSwingUtilsTest
{
import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertTrue;
-import org.testng.annotations.AfterMethod;
-import org.testng.annotations.Test;
-import org.testng.annotations.BeforeMethod;
+
import javax.swing.JInternalFrame;
import javax.swing.JTextField;
+import org.testng.annotations.AfterMethod;
+import org.testng.annotations.BeforeMethod;
+import org.testng.annotations.Test;
+
public class PDBSearchPanelTest
{
package jalview.gui;
-import static org.testng.AssertJUnit.assertSame;
import static org.testng.AssertJUnit.assertEquals;
+import static org.testng.AssertJUnit.assertSame;
import static org.testng.AssertJUnit.assertTrue;
-import org.testng.annotations.AfterMethod;
-import org.testng.annotations.Test;
-import org.testng.annotations.BeforeMethod;
+
import jalview.datamodel.Alignment;
import jalview.datamodel.Sequence;
import jalview.datamodel.SequenceI;
import javax.swing.JPanel;
+import org.testng.annotations.AfterMethod;
+import org.testng.annotations.BeforeMethod;
+import org.testng.annotations.Test;
+
public class PaintRefresherTest
{
// TODO would prefer PaintRefresher to be a single rather than static
import static org.testng.AssertJUnit.assertFalse;
import static org.testng.AssertJUnit.assertTrue;
+import jalview.datamodel.AlignmentAnnotation;
+import jalview.datamodel.AlignmentI;
+import jalview.datamodel.Annotation;
+import jalview.datamodel.SequenceI;
+import jalview.io.AppletFormatAdapter;
+import jalview.io.FormatAdapter;
+
import java.awt.Component;
import java.io.IOException;
import java.util.ArrayList;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
-import jalview.datamodel.AlignmentAnnotation;
-import jalview.datamodel.AlignmentI;
-import jalview.datamodel.Annotation;
-import jalview.datamodel.SequenceI;
-import jalview.io.AppletFormatAdapter;
-import jalview.io.FormatAdapter;
-
public class PopupMenuTest
{
// 4 sequences x 13 positions
import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertTrue;
-import org.testng.annotations.Test;
-import org.testng.Assert;
+
import java.awt.Component;
import java.awt.FlowLayout;
import java.awt.GridLayout;
import javax.swing.JLabel;
import javax.swing.JPanel;
+import org.testng.Assert;
+import org.testng.annotations.Test;
+
public class ProgressBarTest
{
package jalview.gui;
import static org.testng.AssertJUnit.assertEquals;
-import org.testng.annotations.Test;
+
import jalview.datamodel.Alignment;
import jalview.datamodel.AlignmentI;
import jalview.datamodel.Sequence;
import java.awt.Color;
+import org.testng.annotations.Test;
+
public class SequenceRendererTest
{
import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertTrue;
-import org.testng.annotations.AfterMethod;
-import org.testng.annotations.Test;
-import org.testng.annotations.BeforeMethod;
+
import jalview.datamodel.DBRefEntry;
import jalview.datamodel.PDBEntry;
import jalview.datamodel.Sequence;
import java.util.Vector;
+import org.testng.annotations.AfterMethod;
+import org.testng.annotations.BeforeMethod;
+import org.testng.annotations.Test;
+
public class StructureChooserTest
{
Sequence seq;
import static org.testng.AssertJUnit.assertNotNull;
import static org.testng.AssertJUnit.assertTrue;
-import java.io.File;
-
-import org.junit.Assert;
-import org.testng.annotations.AfterClass;
-import org.testng.annotations.BeforeClass;
-import org.testng.annotations.BeforeMethod;
-import org.testng.annotations.Test;
-
import jalview.bin.Cache;
import jalview.datamodel.AlignmentAnnotation;
import jalview.datamodel.AlignmentI;
import jalview.structure.StructureMapping;
import jalview.structure.StructureSelectionManager;
+import java.io.File;
+
+import org.junit.Assert;
+import org.testng.annotations.AfterClass;
+import org.testng.annotations.BeforeClass;
+import org.testng.annotations.BeforeMethod;
+import org.testng.annotations.Test;
+
public class AnnotatedPDBFileInputTest
{
import static org.testng.AssertJUnit.assertNotNull;
import static org.testng.AssertJUnit.assertTrue;
+import jalview.datamodel.AlignmentI;
+import jalview.datamodel.ColumnSelection;
+import jalview.io.AnnotationFile.ViewDef;
+
import java.io.File;
import java.util.Hashtable;
import org.testng.Assert;
import org.testng.annotations.Test;
-import jalview.datamodel.AlignmentI;
-import jalview.datamodel.ColumnSelection;
-import jalview.io.AnnotationFile.ViewDef;
-
public class AnnotationFileIOTest
{
package jalview.io;
+import jalview.json.binding.v1.BioJSReleasePojo;
+import jalview.json.binding.v1.BioJSRepositoryPojo;
+
import java.io.File;
import java.io.IOException;
import java.net.MalformedURLException;
import org.testng.AssertJUnit;
import org.testng.annotations.Test;
-import jalview.json.binding.v1.BioJSReleasePojo;
-import jalview.json.binding.v1.BioJSRepositoryPojo;
-
public class BioJsHTMLOutputTest
{
*/
package jalview.io;
-import org.testng.annotations.AfterClass;
-import org.testng.annotations.Test;
-import org.testng.annotations.BeforeClass;
-import org.testng.AssertJUnit;
import java.io.File;
import java.io.IOException;
+import org.testng.AssertJUnit;
+import org.testng.annotations.AfterClass;
+import org.testng.annotations.BeforeClass;
+import org.testng.annotations.Test;
+
/**
* @author jimp
*
import static org.testng.AssertJUnit.assertNotNull;
-import org.testng.annotations.AfterMethod;
-import org.testng.annotations.Test;
-import org.testng.annotations.BeforeMethod;
-import org.testng.AssertJUnit;
+
import jalview.datamodel.Alignment;
import jalview.datamodel.AlignmentAnnotation;
import jalview.datamodel.AlignmentI;
import java.util.ArrayList;
import java.util.HashMap;
+import org.testng.AssertJUnit;
+import org.testng.annotations.AfterMethod;
+import org.testng.annotations.BeforeMethod;
+import org.testng.annotations.Test;
+
public class JSONFileTest
{
import static org.testng.AssertJUnit.assertTrue;
-import java.io.File;
-
-import org.testng.Assert;
-import org.testng.AssertJUnit;
-import org.testng.annotations.AfterClass;
-import org.testng.annotations.BeforeClass;
-import org.testng.annotations.Test;
-
import jalview.api.AlignmentViewPanel;
import jalview.api.ViewStyleI;
import jalview.bin.Cache;
import jalview.schemes.AnnotationColourGradient;
import jalview.schemes.ColourSchemeI;
+import java.io.File;
+
+import org.testng.Assert;
+import org.testng.AssertJUnit;
+import org.testng.annotations.AfterClass;
+import org.testng.annotations.BeforeClass;
+import org.testng.annotations.Test;
+
public class Jalview2xmlTests
{
*/
package jalview.io;
-import org.testng.annotations.Factory;
import static org.testng.ConversionUtils.wrapDataProvider;
-import org.testng.annotations.AfterClass;
-import org.testng.annotations.Test;
-import org.testng.annotations.BeforeClass;
-import org.testng.Assert;
-import org.testng.AssertJUnit;
-import java.util.Arrays;
-import java.util.Collection;
-import java.util.Iterator;
-import java.util.Vector;
import jalview.analysis.NJTree;
import jalview.analysis.SequenceIdMatcher;
import jalview.datamodel.SequenceI;
import jalview.datamodel.SequenceNode;
-import org.jmol.util.ArrayUtil;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.Vector;
+
import org.junit.runners.Parameterized.Parameters;
+import org.testng.Assert;
+import org.testng.AssertJUnit;
+import org.testng.annotations.AfterClass;
+import org.testng.annotations.BeforeClass;
+import org.testng.annotations.Factory;
+import org.testng.annotations.Test;
/**
* @author jimp
{
olsqs[i] = (SequenceI) ((SequenceNode) oseqs.get(i)).element();
}
- nseqs = (Vector) new NJTree(new SequenceI[0], nf_regen).findLeaves(
+ nseqs = new NJTree(new SequenceI[0], nf_regen).findLeaves(
nf_regen.getTree(), new Vector());
AssertJUnit.assertTrue(stage + "No nodes in regerated tree.", nseqs.size() > 0);
SequenceI[] nsqs = new SequenceI[nseqs.size()];
import static org.testng.AssertJUnit.assertNotNull;
import static org.testng.AssertJUnit.assertTrue;
+import jalview.datamodel.Alignment;
+import jalview.datamodel.SequenceI;
+
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import org.testng.annotations.Test;
-import jalview.datamodel.Alignment;
-import jalview.datamodel.SequenceI;
-
/**
* Test file for {@link PhylipFile}.
*
*/
package jalview.io;
+import java.io.File;
+
import org.testng.annotations.AfterClass;
-import org.testng.annotations.Test;
import org.testng.annotations.BeforeClass;
-import java.io.File;
+import org.testng.annotations.Test;
public class RNAMLfileTest
{
import static org.testng.AssertJUnit.assertNotNull;
import static org.testng.AssertJUnit.assertTrue;
-import java.io.File;
-import java.util.BitSet;
-import java.util.HashMap;
-import java.util.Map;
-
-import org.testng.annotations.Test;
-
import jalview.datamodel.Alignment;
import jalview.datamodel.AlignmentAnnotation;
import jalview.datamodel.AlignmentI;
import jalview.datamodel.SequenceFeature;
import jalview.datamodel.SequenceI;
+import java.io.File;
+import java.util.BitSet;
+import java.util.HashMap;
+import java.util.Map;
+
+import org.testng.annotations.Test;
+
public class StockholmFileTest
{
*/
package jalview.io;
-import org.testng.annotations.Test;
-import org.testng.AssertJUnit;
import jalview.io.TCoffeeScoreFile.Block;
import jalview.io.TCoffeeScoreFile.Header;
import java.io.IOException;
import java.util.List;
-import javax.xml.parsers.ParserConfigurationException;
-
-import org.xml.sax.SAXException;
-
-import fr.orsay.lri.varna.exceptions.ExceptionFileFormatOrSyntax;
-import fr.orsay.lri.varna.exceptions.ExceptionLoadingFailed;
-import fr.orsay.lri.varna.exceptions.ExceptionPermissionDenied;
-import fr.orsay.lri.varna.exceptions.ExceptionUnmatchedClosingParentheses;
+import org.testng.AssertJUnit;
+import org.testng.annotations.Test;
public class TCoffeeScoreFileTest
{
package jalview.schemes;
import static org.testng.AssertJUnit.assertTrue;
-import org.testng.annotations.Test;
+
import java.util.Map;
+import org.testng.annotations.Test;
+
public class DnaCodonTests
{
import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertNull;
-import org.testng.annotations.Test;
+
import java.util.Collections;
import java.util.List;
+import org.testng.annotations.Test;
+
public class ResiduePropertiesTest
{
*/
package jalview.schemes;
-import org.testng.annotations.Test;
import jalview.api.analysis.ScoreModelI;
import java.util.Map;
+import org.testng.annotations.Test;
+
public class ScoreMatrixPrinter
{
@Test
import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertTrue;
-import org.testng.Assert;
-import org.testng.AssertJUnit;
-import org.testng.annotations.Test;
-
-import MCview.PDBfile;
-
import jalview.datamodel.AlignmentAnnotation;
import jalview.datamodel.Annotation;
import jalview.datamodel.Sequence;
import jalview.io.FileLoader;
import jalview.io.FormatAdapter;
+import org.testng.Assert;
+import org.testng.AssertJUnit;
+import org.testng.annotations.Test;
+
+import MCview.PDBfile;
+
public class Mapping
{
import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertTrue;
-import org.testng.annotations.Test;
-import org.testng.annotations.BeforeMethod;
+
import jalview.datamodel.AlignedCodonFrame;
import java.util.HashSet;
import java.util.Set;
+import org.testng.annotations.BeforeMethod;
+import org.testng.annotations.Test;
+
public class StructureSelectionManagerTest
{
private StructureSelectionManager ssm;
import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertFalse;
import static org.testng.AssertJUnit.assertTrue;
-import org.testng.annotations.Test;
-import org.testng.annotations.BeforeMethod;
-import java.util.Arrays;
-import java.util.List;
import jalview.datamodel.Alignment;
import jalview.datamodel.AlignmentI;
import jalview.structure.StructureSelectionManager;
import jalview.structures.models.AAStructureBindingModel.SuperposeData;
+import java.util.Arrays;
+import java.util.List;
+
+import org.testng.annotations.BeforeMethod;
+import org.testng.annotations.Test;
+
/**
* Unit tests for non-abstract methods of abstract base class
*
import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertNull;
-import org.testng.annotations.Test;
+
import java.awt.Color;
+import org.testng.annotations.Test;
+
public class ColorUtilsTest
{
import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertFalse;
import static org.testng.AssertJUnit.assertTrue;
-import org.testng.annotations.Test;
+
import jalview.datamodel.Sequence;
import jalview.datamodel.SequenceI;
+import org.testng.annotations.Test;
+
public class ComparisonTest
{
package jalview.util;
-import static org.testng.AssertJUnit.assertSame;
import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertFalse;
-import static org.testng.AssertJUnit.assertTrue;
import static org.testng.AssertJUnit.assertNull;
-import org.testng.annotations.Test;
+import static org.testng.AssertJUnit.assertSame;
+import static org.testng.AssertJUnit.assertTrue;
+
import jalview.datamodel.DBRefEntry;
import jalview.datamodel.DBRefSource;
import jalview.datamodel.Mapping;
import jalview.datamodel.Sequence;
import jalview.datamodel.SequenceI;
+import org.testng.annotations.Test;
+
public class DBRefUtilsTest
{
package jalview.util;
-import static org.testng.AssertJUnit.assertSame;
import static org.testng.AssertJUnit.assertEquals;
+import static org.testng.AssertJUnit.assertSame;
import static org.testng.AssertJUnit.assertTrue;
-import org.testng.annotations.Test;
-import java.awt.Color;
-import java.io.IOException;
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Set;
import jalview.api.AlignViewportI;
import jalview.datamodel.AlignedCodonFrame;
import jalview.io.AppletFormatAdapter;
import jalview.io.FormatAdapter;
+import java.awt.Color;
+import java.io.IOException;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Set;
+
+import org.testng.annotations.Test;
+
public class MappingUtilsTest
{
private AlignViewportI dnaView;
import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertNull;
-import org.testng.annotations.Test;
+
import java.util.Arrays;
import java.util.List;
+import org.testng.annotations.Test;
+
public class ShiftListTest
{
package jalview.util;
import static org.testng.AssertJUnit.assertEquals;
-import static org.testng.AssertJUnit.assertTrue;
import static org.testng.AssertJUnit.assertNull;
-import org.testng.annotations.Test;
+import static org.testng.AssertJUnit.assertTrue;
+
import java.util.Arrays;
+import org.testng.annotations.Test;
+
public class StringUtilsTest
{
import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertFalse;
import static org.testng.AssertJUnit.assertTrue;
-import org.testng.annotations.Test;
-import org.testng.AssertJUnit;
+
import java.awt.Color;
import java.lang.reflect.Field;
import java.util.Random;
+import org.testng.AssertJUnit;
+import org.testng.annotations.Test;
+
public class ViewStyleTest
{
import static org.testng.AssertJUnit.assertTrue;
-import java.util.List;
-
-import org.testng.annotations.BeforeMethod;
-import org.testng.annotations.Test;
-
import jalview.bin.Cache;
import jalview.datamodel.AlignmentI;
import jalview.datamodel.SequenceI;
import jalview.ws.seqfetcher.DbSourceProxy;
+import java.util.List;
+
+import org.testng.annotations.BeforeMethod;
+import org.testng.annotations.Test;
+
public class PDBSequenceFetcherTest
{
import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertTrue;
-import org.testng.annotations.AfterMethod;
-import org.testng.annotations.Test;
-import org.testng.annotations.BeforeMethod;
-import org.testng.Assert;
+
import jalview.ws.dbsources.PDBRestClient.PDBDocField;
import jalview.ws.uimodel.PDBRestRequest;
import jalview.ws.uimodel.PDBRestResponse;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
import org.json.simple.parser.ParseException;
+import org.testng.Assert;
+import org.testng.annotations.AfterMethod;
+import org.testng.annotations.BeforeMethod;
+import org.testng.annotations.Test;
+
import com.sun.jersey.api.client.Client;
import com.sun.jersey.api.client.ClientResponse;
import com.sun.jersey.api.client.WebResource;
import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertNull;
-import org.testng.annotations.Test;
-import java.io.Reader;
-import java.io.StringReader;
-import java.util.Vector;
import jalview.datamodel.PDBEntry;
import jalview.datamodel.SequenceFeature;
import jalview.datamodel.UniprotEntry;
+import java.io.Reader;
+import java.io.StringReader;
+import java.util.Vector;
+
+import org.testng.annotations.Test;
+
public class UniprotTest
{
// adapted from http://www.uniprot.org/uniprot/A9CKP4.xml
*/
package jalview.ws.gui;
+import jalview.bin.Cache;
+import jalview.gui.WsJobParameters;
+import jalview.util.MessageManager;
+import jalview.ws.jabaws.JalviewJabawsTestUtils;
+import jalview.ws.jws2.JabaPreset;
+import jalview.ws.jws2.Jws2Discoverer;
+import jalview.ws.jws2.jabaws2.Jws2Instance;
+
import java.awt.BorderLayout;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import compbio.metadata.Preset;
import compbio.metadata.PresetManager;
-import jalview.bin.Cache;
-import jalview.gui.WsJobParameters;
-import jalview.util.MessageManager;
-import jalview.ws.jabaws.JalviewJabawsTestUtils;
-import jalview.ws.jws2.JabaPreset;
-import jalview.ws.jws2.Jws2Discoverer;
-import jalview.ws.jws2.jabaws2.Jws2Instance;
-
public class Jws2ParamView
{
/**
import static org.testng.AssertJUnit.assertNotNull;
import static org.testng.AssertJUnit.assertTrue;
-import org.testng.annotations.AfterClass;
-import org.testng.annotations.Test;
-import org.testng.annotations.BeforeClass;
-import org.testng.Assert;
+
import jalview.datamodel.AlignmentAnnotation;
import jalview.datamodel.AlignmentI;
import jalview.io.AnnotationFile;
import java.util.ArrayList;
import java.util.List;
+import org.testng.Assert;
+import org.testng.annotations.AfterClass;
+import org.testng.annotations.BeforeClass;
+import org.testng.annotations.Test;
+
public class DisorderAnnotExportImport
{
public static String testseqs = "examples/uniref50.fa";
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
+import jalview.ws.jws2.Jws2Discoverer;
+
import java.util.Vector;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
-import jalview.ws.jws2.Jws2Discoverer;
-
public class JalviewJabawsTestUtils
{
import static org.testng.AssertJUnit.assertNotNull;
import static org.testng.AssertJUnit.assertTrue;
+import jalview.datamodel.AlignmentI;
+import jalview.gui.Jalview2XML;
+import jalview.io.AnnotationFile;
+import jalview.io.FormatAdapter;
+import jalview.io.StockholmFileTest;
+import jalview.ws.jws2.JPred301Client;
+import jalview.ws.jws2.JabaParamStore;
+import jalview.ws.jws2.Jws2Discoverer;
+import jalview.ws.jws2.SequenceAnnotationWSClient;
+import jalview.ws.jws2.jabaws2.Jws2Instance;
+import jalview.ws.params.AutoCalcSetting;
+
import java.awt.Component;
import java.util.ArrayList;
import java.util.List;
import compbio.metadata.Argument;
import compbio.metadata.WrongParameterException;
-import jalview.datamodel.AlignmentI;
-import jalview.gui.Jalview2XML;
-import jalview.io.AnnotationFile;
-import jalview.io.FormatAdapter;
-import jalview.io.StockholmFileTest;
-import jalview.ws.jws2.JPred301Client;
-import jalview.ws.jws2.JabaParamStore;
-import jalview.ws.jws2.Jws2Discoverer;
-import jalview.ws.jws2.SequenceAnnotationWSClient;
-import jalview.ws.jws2.jabaws2.Jws2Instance;
-import jalview.ws.params.AutoCalcSetting;
-
public class JpredJabaStructExportImport
{
public static String testseqs = "examples/uniref50.fa";
package jalview.ws.jabaws;
import static org.testng.AssertJUnit.assertEquals;
-import org.testng.annotations.Test;
-import org.testng.Assert;
+
import java.util.ArrayList;
import java.util.List;
+import org.testng.Assert;
+import org.testng.annotations.Test;
+
import compbio.data.msa.MsaWS;
import compbio.data.msa.RegistryWS;
import compbio.data.sequence.FastaSequence;
import compbio.ws.client.Jws2Client;
import compbio.ws.client.Services;
-public class MinJabawsClientTests {
+public class MinJabawsClientTests
+{
/**
* simple test for the benefit of JAL-1338
import static org.testng.AssertJUnit.assertNotNull;
import static org.testng.AssertJUnit.assertTrue;
+import jalview.datamodel.AlignmentAnnotation;
+import jalview.datamodel.AlignmentI;
+import jalview.gui.Jalview2XML;
+import jalview.io.AnnotationFile;
+import jalview.io.FormatAdapter;
+import jalview.io.StockholmFileTest;
+import jalview.ws.jws2.Jws2Discoverer;
+import jalview.ws.jws2.RNAalifoldClient;
+import jalview.ws.jws2.SequenceAnnotationWSClient;
+import jalview.ws.jws2.jabaws2.Jws2Instance;
+import jalview.ws.params.AutoCalcSetting;
+
import java.awt.Component;
import java.util.ArrayList;
import java.util.List;
import compbio.metadata.WrongParameterException;
-import jalview.datamodel.AlignmentAnnotation;
-import jalview.datamodel.AlignmentI;
-import jalview.gui.Jalview2XML;
-import jalview.io.AnnotationFile;
-import jalview.io.FormatAdapter;
-import jalview.io.StockholmFileTest;
-import jalview.ws.jws2.Jws2Discoverer;
-import jalview.ws.jws2.RNAalifoldClient;
-import jalview.ws.jws2.SequenceAnnotationWSClient;
-import jalview.ws.jws2.jabaws2.Jws2Instance;
-import jalview.ws.params.AutoCalcSetting;
-
public class RNAStructExportImport
{
public static String testseqs = "examples/RF00031_folded.stk";
import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertFalse;
import static org.testng.AssertJUnit.assertTrue;
-import org.testng.annotations.Test;
-import org.testng.annotations.BeforeClass;
+
+import jalview.bin.Cache;
+import jalview.ws.jabaws.JalviewJabawsTestUtils;
+import jalview.ws.jws2.jabaws2.Jws2Instance;
+
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
+import org.testng.annotations.BeforeClass;
+import org.testng.annotations.Test;
+
import compbio.metadata.Option;
import compbio.metadata.Parameter;
import compbio.metadata.Preset;
import compbio.metadata.PresetManager;
import compbio.metadata.WrongParameterException;
-import jalview.bin.Cache;
-import jalview.ws.jabaws.JalviewJabawsTestUtils;
-import jalview.ws.jws2.jabaws2.Jws2Instance;
-
public class ParameterUtilsTest
{
/*
package jalview.ws.rest;
import static org.testng.AssertJUnit.assertEquals;
-import org.testng.annotations.Test;
-import java.util.Vector;
import jalview.bin.Cache;
+import java.util.Vector;
+
+import org.testng.annotations.Test;
+
public class RestClientTest
{
/**
import static org.testng.AssertJUnit.assertNotNull;
import static org.testng.AssertJUnit.assertTrue;
+import jalview.gui.AlignFrame;
+
import java.util.Map;
import org.testng.annotations.Test;
-import jalview.gui.AlignFrame;
-
/**
* @author jimp
*
package jalview.ws.seqfetcher;
-import org.testng.annotations.Test;
import org.testng.AssertJUnit;
+import org.testng.annotations.Test;
public class DasSequenceFetcher
{
import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertNotNull;
import static org.testng.AssertJUnit.assertTrue;
-import org.testng.annotations.AfterClass;
-import org.testng.annotations.Test;
-import org.testng.annotations.BeforeClass;
-import java.util.ArrayList;
-import java.util.List;
import jalview.analysis.CrossRef;
import jalview.datamodel.AlignmentI;
import jalview.util.DBRefUtils;
import jalview.ws.SequenceFetcher;
+import java.util.ArrayList;
+import java.util.List;
+
+import org.testng.annotations.AfterClass;
+import org.testng.annotations.BeforeClass;
+import org.testng.annotations.Test;
+
/**
* @author jimp
*