Class MockCvTermFetcher

  • All Implemented Interfaces:
    CvTermFetcher<CvTerm>, MockFetcher<CvTerm>

    public class MockCvTermFetcher
    extends AbstractMockFetcher<CvTerm>
    implements CvTermFetcher<CvTerm>
    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:
    01/07/13
    Author:
    Gabriel Aldam (galdam@ebi.ac.uk)