Commit 76fdb350 authored by Michael Menzel's avatar Michael Menzel
Browse files

dbfilepath fixed

parent cdaa4f26
...@@ -29,6 +29,7 @@ import de.thm.logo.Sequencelogo; ...@@ -29,6 +29,7 @@ import de.thm.logo.Sequencelogo;
import de.thm.misc.ChromosomSizes; import de.thm.misc.ChromosomSizes;
import de.thm.misc.Genome; import de.thm.misc.Genome;
import de.thm.positionData.Sites; import de.thm.positionData.Sites;
import de.thm.run.BackendServer;
import org.junit.BeforeClass; import org.junit.BeforeClass;
import org.junit.Test; import org.junit.Test;
...@@ -53,6 +54,8 @@ public class SiteFactoryTest { ...@@ -53,6 +54,8 @@ public class SiteFactoryTest {
@BeforeClass @BeforeClass
public static void init(){ public static void init(){
BackendServer.dbfilepath = "/home/menzel/Desktop/THM/lfba/enhort/stefan.db";
DBConnector connector = new DBConnector(); DBConnector connector = new DBConnector();
connector.connect(); connector.connect();
connector.getAllTracks("WHERE name like 'known genes' AND genome_assembly = 'hg19'").forEach(TrackFactory.getInstance()::loadTrack); connector.getAllTracks("WHERE name like 'known genes' AND genome_assembly = 'hg19'").forEach(TrackFactory.getInstance()::loadTrack);
...@@ -68,7 +71,7 @@ public class SiteFactoryTest { ...@@ -68,7 +71,7 @@ public class SiteFactoryTest {
trackFactory.addTrack(contigs); trackFactory.addTrack(contigs);
//end mock contigs track //end mock contigs track
factory = new SiteFactory(Genome.Assembly.hg19, 3000000); factory = new SiteFactory(Genome.Assembly.hg19, 1000000);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment