import static org.testng.AssertJUnit.assertFalse;
import static org.testng.AssertJUnit.assertTrue;
-import jalview.ext.so.SequenceOntology;
-import jalview.io.gff.SequenceOntologyFactory;
import jalview.io.gff.SequenceOntologyI;
-import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
{
private SequenceOntologyI so;
- @BeforeClass
+ @BeforeClass(alwaysRun = true)
public void setUp() {
long now = System.currentTimeMillis();
- SequenceOntologyFactory.setInstance(new SequenceOntology());
+ try
+ {
+ so = new SequenceOntology();
+ } catch (Throwable t)
+ {
+ System.out.println("SOTest error ");
+ t.printStackTrace(System.err);
+ }
long elapsed = System.currentTimeMillis() - now;
System.out.println("Load and cache of Sequence Ontology took "
+ elapsed + "ms");
- so = SequenceOntologyFactory.getInstance();
- }
-
- @AfterClass
- public void tearDown()
- {
- SequenceOntologyFactory.setInstance(null);
}
@Test(groups = "Functional")