Class AbstractFailingFetcher<T>

    • Constructor Detail

      • AbstractFailingFetcher

        protected AbstractFailingFetcher​(int maxQuery)
        Sets up the mock fetcher with a number of times to throw exceptions before returning the solution to the query. If the maxQuery is positive, a query must be made that many times before a solution is given. If a new query is made, the count resets. If the maxQuery is -1, it will always throw an exception.
        Parameters:
        maxQuery - The number of time to throw an exception, or -1 if exception should always be thrown.