Class MockGeneFetcher

  • All Implemented Interfaces:
    GeneFetcher, InteractorFetcher<Gene>, MockFetcher<Collection<Gene>>

    public class MockGeneFetcher
    extends AbstractMockFetcher<Collection<Gene>>
    implements GeneFetcher
    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:
    23/05/13
    Version:
    $Id$
    Author:
    Marine Dumousseau (marine@ebi.ac.uk)