Changeset 412
- Timestamp:
- 06/22/10 17:30:16 (20 months ago)
- Location:
- trunk
- Files:
-
- 1 removed
- 5 modified
- 1 moved
-
org.bridgedb.rdb (modified) (1 prop)
-
org.bridgedb.rdb/test/buildsystem (deleted)
-
org.bridgedb.rdb/test/org/bridgedb/rdb/Test2.java (modified) (1 diff)
-
org.bridgedb.rdb/test/org/bridgedb/rdb/TestStack.java (modified) (1 diff)
-
org.bridgedb.server (modified) (1 prop)
-
org.bridgedb.webservice.biomart/test/org/bridgedb/webservice/biomart/TestBiomart.java (modified) (4 diffs)
-
org.bridgedb/src/buildsystem (moved) (moved from trunk/org.bridgedb/test/buildsystem)
Legend:
- Unmodified
- Added
- Removed
-
trunk/org.bridgedb.rdb
-
Property
svn:ignore set
to
target
-
Property
svn:ignore set
to
-
trunk/org.bridgedb.rdb/test/org/bridgedb/rdb/Test2.java
r363 r412 33 33 import org.bridgedb.rdb.SimpleGdb; 34 34 import org.bridgedb.rdb.SimpleGdbFactory; 35 import org.junit.Ignore; 35 36 37 //@Ignore 36 38 public class Test2 extends TestCase 37 39 { -
trunk/org.bridgedb.rdb/test/org/bridgedb/rdb/TestStack.java
r325 r412 13 13 import org.bridgedb.Xref; 14 14 import org.bridgedb.bio.BioDataSource; 15 import org.junit.Ignore; 15 16 16 17 import junit.framework.TestCase; 17 18 19 //@Ignore 18 20 public class TestStack extends TestCase 19 21 { -
trunk/org.bridgedb.server
-
Property
svn:ignore set
to
target
-
Property
svn:ignore set
to
-
trunk/org.bridgedb.webservice.biomart/test/org/bridgedb/webservice/biomart/TestBiomart.java
r363 r412 23 23 import org.bridgedb.IDMapperException; 24 24 import org.bridgedb.Xref; 25 import org.bridgedb.webservice.biomart.util.BiomartClient;26 //import buildsystem.Measure;27 25 28 import java.io.File;29 26 import java.io.IOException; 30 import java.net.MalformedURLException;31 27 32 import java.util.Arrays; 33 import java.util.HashSet; 34 import java.util.Map; 35 import java.util.Set; 28 import java.util.*; 36 29 37 import junit.framework.TestCase;38 39 import org.bridgedb.webservice.biomart.*;30 import org.junit.Ignore; 31 import org.junit.Test; 32 import static org.junit.Assert.*; 40 33 41 34 /** 42 35 * Test identifier mapping using Biomart web service. 43 36 */ 44 public class TestBiomart extends TestCase 37 @Ignore //uncomment if biomart service is down again... 38 public class TestBiomart // do not need to extend TestCase 45 39 { 46 40 // disabled test, because it takes several minutes to run 41 //@Test 47 42 public void _testBiomartStub() throws IOException, IDMapperException { 48 43 BiomartStub biomartStub = BiomartStub.getInstance(); … … 86 81 } 87 82 88 public void testBioMartConnector() throws IOException, IDMapperException 83 @Test 84 public void testBioMartConnector() throws IOException, IDMapperException, ClassNotFoundException 89 85 { 90 // BiomartStub biomartStub = BiomartStub.getInstance(); 91 // Map<String, Database> reg = null; 92 // try { 93 // reg = biomartStub.getRegistry(); 94 // } catch (Exception e) { 95 // e.printStackTrace(); 96 // } 97 // Set<Database> dbs = new HashSet(reg.size()); 98 // for (Database db : reg.values()) { 99 // //if (db.visible()) { 100 // dbs.add(db); 101 // //} 102 // System.out.println (db.getName()); 103 // } 86 /* 87 BiomartStub biomartStub = BiomartStub.getInstance(); 88 Map<String, Database> reg = null; 89 try { 90 reg = biomartStub.getRegistry(); 91 } catch (Exception e) { 92 e.printStackTrace(); 93 } 94 Set<Database> dbs = new HashSet(reg.size()); 95 for (Database db : reg.values()) { 96 //if (db.visible()) { 97 dbs.add(db); 98 //} 99 System.out.println (db.getName()); 100 } 104 101 //BiomartStub biomartStub = BiomartStub.getInstance(); 105 102 106 103 //Set<Dataset> datasets = new HashSet(biomartStub.getAvailableDatasets("ensembl")); 104 */ 107 105 108 IDMapperBiomart mapper = new IDMapperBiomart("ensembl", "hsapiens_gene_ensembl"); 106 IDMapperBiomart mapper = new IDMapperBiomart("ensembl", "hsapiens_gene_ensembl"); 107 //Class.forName("org.bridgedb.webservice.biomart.IDMapperBiomart"); 108 //IDMapper mapper = BridgeDb.connect ("idmapper-biomart:http://www.biomart.org/biomart/martservice?mart=ensembl&dataset=hsapiens_gene_ensembl"); 109 109 Set<DataSource> dest = mapper.getCapabilities().getSupportedTgtDataSources(); 110 110 … … 117 117 } 118 118 119 @Test 119 120 public void testBioMartConnector2() throws IOException, IDMapperException, ClassNotFoundException 120 121 { 121 122 Class.forName("org.bridgedb.webservice.biomart.IDMapperBiomart"); 122 123 123 //IDMapperBiomart mapper = new IDMapperBiomart("hsapiens_gene_ensembl");124 124 IDMapper mapper = BridgeDb.connect ("idmapper-biomart:http://www.biomart.org/biomart/martservice?mart=ensembl&dataset=hsapiens_gene_ensembl"); 125 125 Set<DataSource> dest = mapper.getCapabilities().getSupportedTgtDataSources(); … … 155 155 } 156 156 157 158 @Test 157 159 public void testBioMartMapping() throws IOException, IDMapperException, ClassNotFoundException 158 160 { 159 Class.forName("org.bridgedb.webservice.biomart.IDMapperBiomart");161 Class.forName("org.bridgedb.webservice.biomart.IDMapperBiomart"); 160 162 161 //IDMapperBiomart mapper = new IDMapperBiomart("hsapiens_gene_ensembl");162 163 IDMapper mapper = BridgeDb.connect ("idmapper-biomart:http://www.biomart.org/biomart/martservice?mart=ensembl&dataset=hsapiens_gene_ensembl"); 163 164
