com.flextrade.jfixture.CompositeBehaviour 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
The newest version!
package com.flextrade.jfixture;
class CompositeBehaviour implements FixtureBehaviour {
private final Iterable behaviours;
public CompositeBehaviour(Iterable behaviours) {
this.behaviours = behaviours;
}
@Override
public SpecimenBuilder transform(SpecimenBuilder builder) {
SpecimenBuilder enrichedBuilder = builder;
for (FixtureBehaviour behaviour : this.behaviours) {
enrichedBuilder = behaviour.transform(enrichedBuilder);
}
return enrichedBuilder;
}
}