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/test/org/bridgedb/webservice/synergizer/Test.java

    r400 r402  
    7272            IDMapper mapper = BridgeDb.connect("idmapper-synergizer:?authority=ensembl&species=Homo sapiens"); 
    7373            DataSource srcDs = DataSource.getByFullName("hgnc_symbol"); 
    74             assertTrue(mapper.xrefExists(new Xref("snph", srcDs))); 
     74             
     75            try 
     76            { 
     77                mapper.xrefExists(new Xref("snph", srcDs)); 
     78                fail ("Expected UnsupportedOperationException after calling xrefExists"); 
     79            } 
     80            catch (UnsupportedOperationException ex) 
     81            { 
     82                // ok. 
     83            } 
    7584 
    7685            Set<Xref> srcXrefs = new HashSet();