Class MockOrganismFetcher

  • All Implemented Interfaces:
    MockFetcher<Organism>, OrganismFetcher

    public class MockOrganismFetcher
    extends AbstractMockFetcher<Organism>
    implements OrganismFetcher
    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:
    24/05/13
    Author:
    Gabriel Aldam (galdam@ebi.ac.uk)