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-1191 additions to SOLite, tweak to test
[jalview.git]
/
test
/
jalview
/
io
/
gff
/
SequenceOntologyTest.java
diff --git
a/test/jalview/io/gff/SequenceOntologyTest.java
b/test/jalview/io/gff/SequenceOntologyTest.java
index
f791a1e
..
0b72515
100644
(file)
--- a/
test/jalview/io/gff/SequenceOntologyTest.java
+++ b/
test/jalview/io/gff/SequenceOntologyTest.java
@@
-3,20
+3,28
@@
package jalview.io.gff;
import static org.testng.AssertJUnit.assertFalse;
import static org.testng.AssertJUnit.assertTrue;
import static org.testng.AssertJUnit.assertFalse;
import static org.testng.AssertJUnit.assertTrue;
-import org.testng.annotations.BeforeMethod;
+import org.testng.annotations.AfterClass;
+import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
public class SequenceOntologyTest
{
private SequenceOntologyI so;
import org.testng.annotations.Test;
public class SequenceOntologyTest
{
private SequenceOntologyI so;
- @BeforeMethod
+ @BeforeClass
public void setUp() {
long now = System.currentTimeMillis();
public void setUp() {
long now = System.currentTimeMillis();
- so = SequenceOntologyFactory.getInstance();
+ SequenceOntologyFactory.setInstance(new SequenceOntology());
long elapsed = System.currentTimeMillis() - now;
System.out.println("Load and cache of Sequence Ontology took "
+ elapsed + "ms");
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")
}
@Test(groups = "Functional")