Changeset 412

Show
Ignore:
Timestamp:
06/22/10 17:30:16 (20 months ago)
Author:
rodche
Message:

Modified and temporarily disabled biomart (was down) tests; buildsystem.Measure was duplicated in the bridgedb.rdb and bridgedb modules, so it's now only in org.bridgedb (arc/main/ - to be accessible by other modules's tests)

Location:
trunk
Files:
1 removed
5 modified
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/org.bridgedb.rdb

    • Property svn:ignore set to
      target
  • trunk/org.bridgedb.rdb/test/org/bridgedb/rdb/Test2.java

    r363 r412  
    3333import org.bridgedb.rdb.SimpleGdb; 
    3434import org.bridgedb.rdb.SimpleGdbFactory; 
     35import org.junit.Ignore; 
    3536 
     37//@Ignore 
    3638public class Test2 extends TestCase  
    3739{ 
  • trunk/org.bridgedb.rdb/test/org/bridgedb/rdb/TestStack.java

    r325 r412  
    1313import org.bridgedb.Xref; 
    1414import org.bridgedb.bio.BioDataSource; 
     15import org.junit.Ignore; 
    1516 
    1617import junit.framework.TestCase; 
    1718 
     19//@Ignore 
    1820public class TestStack extends TestCase 
    1921{ 
  • trunk/org.bridgedb.server

    • Property svn:ignore set to
      target
  • trunk/org.bridgedb.webservice.biomart/test/org/bridgedb/webservice/biomart/TestBiomart.java

    r363 r412  
    2323import org.bridgedb.IDMapperException; 
    2424import org.bridgedb.Xref; 
    25 import org.bridgedb.webservice.biomart.util.BiomartClient; 
    26 //import buildsystem.Measure; 
    2725 
    28 import java.io.File; 
    2926import java.io.IOException; 
    30 import java.net.MalformedURLException; 
    3127 
    32 import java.util.Arrays; 
    33 import java.util.HashSet; 
    34 import java.util.Map; 
    35 import java.util.Set; 
     28import java.util.*; 
    3629 
    37 import junit.framework.TestCase; 
    38  
    39 import org.bridgedb.webservice.biomart.*; 
     30import org.junit.Ignore; 
     31import org.junit.Test; 
     32import static org.junit.Assert.*; 
    4033 
    4134/** 
    4235 * Test identifier mapping using Biomart web service. 
    4336 */ 
    44 public class TestBiomart extends TestCase 
     37@Ignore //uncomment if biomart service is down again... 
     38public class TestBiomart // do not need to extend TestCase 
    4539{ 
    4640        // disabled test, because it takes several minutes to run 
     41        //@Test 
    4742    public void _testBiomartStub() throws IOException, IDMapperException { 
    4843        BiomartStub biomartStub = BiomartStub.getInstance(); 
     
    8681    } 
    8782 
    88     public void testBioMartConnector() throws IOException, IDMapperException 
     83    @Test 
     84    public void testBioMartConnector() throws IOException, IDMapperException, ClassNotFoundException 
    8985    { 
    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         } 
    104101        //BiomartStub biomartStub = BiomartStub.getInstance(); 
    105102 
    106103        //Set<Dataset> datasets = new HashSet(biomartStub.getAvailableDatasets("ensembl")); 
     104    */ 
    107105 
    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"); 
    109109                Set<DataSource> dest = mapper.getCapabilities().getSupportedTgtDataSources();  
    110110                  
     
    117117    } 
    118118 
     119    @Test 
    119120    public void testBioMartConnector2() throws IOException, IDMapperException, ClassNotFoundException 
    120121    { 
    121122                Class.forName("org.bridgedb.webservice.biomart.IDMapperBiomart"); 
    122123                 
    123                  //IDMapperBiomart mapper = new IDMapperBiomart("hsapiens_gene_ensembl"); 
    124124                IDMapper mapper = BridgeDb.connect ("idmapper-biomart:http://www.biomart.org/biomart/martservice?mart=ensembl&dataset=hsapiens_gene_ensembl"); 
    125125                Set<DataSource> dest = mapper.getCapabilities().getSupportedTgtDataSources();  
     
    155155    } 
    156156     
     157     
     158    @Test 
    157159    public void testBioMartMapping() throws IOException, IDMapperException, ClassNotFoundException 
    158160    { 
    159         Class.forName("org.bridgedb.webservice.biomart.IDMapperBiomart"); 
     161       Class.forName("org.bridgedb.webservice.biomart.IDMapperBiomart"); 
    160162         
    161         //IDMapperBiomart mapper = new IDMapperBiomart("hsapiens_gene_ensembl"); 
    162163       IDMapper mapper = BridgeDb.connect ("idmapper-biomart:http://www.biomart.org/biomart/martservice?mart=ensembl&dataset=hsapiens_gene_ensembl"); 
    163164