Show
Ignore:
Timestamp:
06/04/10 17:09:53 (2 years ago)
Author:
rodche
Message:

mavenized ..webservice.synergizer (test fails due to the org.bridgedb.webservice.synergizer.SynergizerStub??.idExist(SynergizerStub??.java:268) is error or outdated; probably the service changed...)

Location:
trunk/org.bridgedb.webservice.synergizer
Files:
2 added
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/org.bridgedb.webservice.synergizer

    • Property svn:ignore set to
      target
  • trunk/org.bridgedb.webservice.synergizer/src/org/bridgedb/webservice/synergizer/SynergizerStub.java

    r308 r400  
    260260    public boolean idExist(final String authority, final String species, 
    261261            final String domain, final String id) throws IDMapperException { 
    262         String range = domain; 
     262        String range = domain; // bug: client now complains that domain==range! 
    263263        Set<String> ids = new HashSet(1); 
    264264        ids.add(id); 
  • trunk/org.bridgedb.webservice.synergizer/test/org/bridgedb/webservice/synergizer/Test.java

    r308 r400  
    5050 
    5151        public void testIDMapperSynergizer() throws IOException, IDMapperException { 
    52 //            SynergizerStub client = SynergizerStub.getInstance(); 
    53 //            for (String auth : client.availableAuthorities()) { 
    54 //                System.out.println("Authority: "+auth); 
    55 //                for (String species : client.availableSpecies(auth)) { 
    56 //                    System.out.println("  Species: "+species); 
    57 //                    IDMapperSynergizer mapper = new IDMapperSynergizer(auth, species); 
    58 //                    System.out.println("    Supported source data sources:"); 
    59 //                    for (DataSource ds : mapper.getCapabilities().getSupportedSrcDataSources()) { 
    60 //                        System.out.println("      "+ds.getFullName()); 
    61 //                    } 
    62 //                    System.out.println("    Supported target data sources:"); 
    63 //                    for (DataSource ds : mapper.getCapabilities().getSupportedTgtDataSources()) { 
    64 //                        System.out.println("      "+ds.getFullName()); 
    65 //                    } 
    66 //                } 
    67 //            } 
     52                 
     53            SynergizerStub client = SynergizerStub.getInstance(); 
     54            for (String auth : client.availableAuthorities()) { 
     55                System.out.println("Authority: "+auth); 
     56                for (String species : client.availableSpecies(auth)) { 
     57                    System.out.println("  Species: "+species); 
     58                    IDMapperSynergizer mapper = new IDMapperSynergizer(auth, species); 
     59                    System.out.println("    Supported source data sources:"); 
     60                    for (DataSource ds : mapper.getCapabilities().getSupportedSrcDataSources()) { 
     61                        System.out.println("      "+ds.getFullName()); 
     62                    } 
     63                    System.out.println("    Supported target data sources:"); 
     64                    for (DataSource ds : mapper.getCapabilities().getSupportedTgtDataSources()) { 
     65                        System.out.println("      "+ds.getFullName()); 
     66                    } 
     67                    break; // one is enough for now 
     68                } 
     69                break; // one is enough for now 
     70            } 
    6871 
    6972            IDMapper mapper = BridgeDb.connect("idmapper-synergizer:?authority=ensembl&species=Homo sapiens"); 
    70  
    7173            DataSource srcDs = DataSource.getByFullName("hgnc_symbol"); 
    72             assertTrue(mapper.xrefExists(new Xref("pja1", srcDs))); 
     74            assertTrue(mapper.xrefExists(new Xref("snph", srcDs))); 
    7375 
    7476            Set<Xref> srcXrefs = new HashSet();