com.flextrade.jfixture.behaviours.noresolution.ThrowOnNoResolutionBehaviour 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.behaviours.noresolution;
import com.flextrade.jfixture.FixtureBehaviour;
import com.flextrade.jfixture.SpecimenBuilder;
public class ThrowOnNoResolutionBehaviour implements FixtureBehaviour {
@Override
public SpecimenBuilder transform(SpecimenBuilder builder) {
if (builder == null) throw new IllegalArgumentException();
return new NoResolutionGuard(builder, new ThrowingNoResolutionHandler());
}
}