Class MockPublicationFetcher

  • All Implemented Interfaces:
    MockFetcher<Publication>, PublicationFetcher

    public class MockPublicationFetcher
    extends AbstractMockFetcher<Publication>
    implements PublicationFetcher
    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:
    31/07/13
    Author:
    Gabriel Aldam (galdam@ebi.ac.uk)
    • Constructor Detail

      • MockPublicationFetcher

        public MockPublicationFetcher()

        Constructor for MockPublicationFetcher.