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

com.flextrade.jfixture.CompositeBehaviour 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;

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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy