Show
Ignore:
Timestamp:
06/10/10 13:16:51 (2 years ago)
Author:
martijn
Message:

Fixed failed test in synergizer by not supporting xrefExists anymore.
This means that xrefExists is now officially an optional operation

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/org.bridgedb.webservice.synergizer/src/org/bridgedb/webservice/synergizer/IDMapperSynergizer.java

    r308 r402  
    311311     * {@inheritDoc} 
    312312     */ 
    313     public boolean xrefExists(Xref xref) throws IDMapperException { 
    314         if (xref==null) 
    315             return false; 
    316  
    317         DataSource ds = xref.getDataSource(); 
    318         if (!supportedSrcDs.contains(ds)) 
    319             return false; 
    320  
    321         String src = ds.getFullName(); 
    322         String id = xref.getId(); 
    323         return stub.idExist(authority, species, src, id); 
     313    public boolean xrefExists(Xref xref) throws IDMapperException  
     314    { 
     315        throw new UnsupportedOperationException ("xrefExists operation not supported for synergizer"); 
    324316    } 
    325317}