com.flextrade.jfixture.customisation.OmitSpecimenRecursionCustomisation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jfixture Show documentation
Show all versions of jfixture Show documentation
JFixture is an open source library based on the popular .NET library, AutoFixture
package com.flextrade.jfixture.customisation;
import com.flextrade.jfixture.JFixture;
import com.flextrade.jfixture.behaviours.recursion.OmitSpecimenRecursionBehaviour;
import com.flextrade.jfixture.behaviours.recursion.ThrowingRecursionBehaviour;
public class OmitSpecimenRecursionCustomisation implements Customisation {
@Override
public void customise(JFixture fixture) {
fixture.behaviours().remove(ThrowingRecursionBehaviour.class);
OmitSpecimenRecursionBehaviour behaviour = new OmitSpecimenRecursionBehaviour();
fixture.behaviours().add(behaviour);
}
}