Class MockSourceFetcher

  • All Implemented Interfaces:
    CvTermFetcher<Source>, SourceFetcher

    public class MockSourceFetcher
    extends Object
    implements SourceFetcher
    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)
    • Constructor Detail

      • MockSourceFetcher

        public MockSourceFetcher()

        Constructor for MockSourceFetcher.