All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.flextrade.jfixture.behaviours.recursion.OmitSpecimenRecursionHandler Maven / Gradle / Ivy

Go to download

JFixture is an open source library based on the popular .NET library, AutoFixture

The newest version!
package com.flextrade.jfixture.behaviours.recursion;

import java.util.List;

class OmitSpecimenRecursionHandler implements RecursionHandler {
    @Override
    public Object handleRecursiveRequest(Object request, List recordedRequests) {
        // This needs to return {null}, not {NoSpecimen} because {null} signals
        // that the request has actually been handled and the Fixture won't
        // continue to try to fulfill it - which it won't be able to
        return null;
    }
}