| 99 | | // test mapping single id |
| 100 | | start = System.currentTimeMillis(); |
| 101 | | Set<Xref> result2 = mapper.mapID(from); |
| 102 | | end = System.currentTimeMillis(); delta = end - start; |
| 103 | | measure.add("Benchmark::" + name + "::mapID(Xref)", "" + delta, "msec"); |
| | 99 | try |
| | 100 | { |
| | 101 | // test mapping single id |
| | 102 | start = System.currentTimeMillis(); |
| | 103 | Set<Xref> result2 = mapper.mapID(from); |
| | 104 | end = System.currentTimeMillis(); delta = end - start; |
| | 105 | measure.add("Benchmark::" + name + "::mapID(Xref)", "" + delta, "msec"); |
| | 106 | |
| | 107 | assertTrue (result2.contains(to)); |
| | 108 | assertNotNull (mapper.mapID(NONEXISTENT)); |
| | 109 | } |
| | 110 | catch (UnsupportedOperationException ex) |
| | 111 | { |
| | 112 | // at least for idmapper-biomart, zero target DataSources is not supported |
| | 113 | } |