com.flextrade.jfixture.customisation.CompositeCustomisation 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 java.util.Arrays;
public class CompositeCustomisation implements Customisation {
private final Iterable customisations;
public CompositeCustomisation(Customisation... customisations) {
this(Arrays.asList(customisations));
}
public CompositeCustomisation(Iterable customisations) {
this.customisations = customisations;
}
@Override
public void customise(JFixture fixture) {
for (Customisation c : customisations) {
fixture.customise(c);
}
}
}