Class MockOntologyTermFetcher

  • All Implemented Interfaces:
    CvTermFetcher<OntologyTerm>, OntologyTermFetcher

    public class MockOntologyTermFetcher
    extends Object
    implements OntologyTermFetcher
    A mock fetcher for testing. It extends all the methods of the true fetcher, but does not access an external service. Instead, it holds a map which can be loaded with objects and keys. which are then returned. It attempts to replicate the responses of the fetcher in most scenarios.
    Since:
    08/07/13
    Author:
    Gabriel Aldam (galdam@ebi.ac.uk)