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

com.flextrade.jfixture.customisation.InterceptingCustomisation Maven / Gradle / Ivy

Go to download

JFixture is an open source library based on the popular .NET library, AutoFixture

There is a newer version: 2.7.2
Show newest version
package com.flextrade.jfixture.customisation;

import com.flextrade.jfixture.JFixture;
import com.flextrade.jfixture.behaviours.intercept.InterceptBehaviour;
import com.flextrade.jfixture.utility.Interceptor;

public class InterceptingCustomisation implements Customisation {

    private final Class classToIntercept;
    private final Interceptor interceptor;

    public InterceptingCustomisation(Class classToIntercept, Interceptor interceptor) {
        this.classToIntercept = classToIntercept;
        this.interceptor = interceptor;
    }

    @Override
    public void customise(JFixture fixture) {
        fixture.behaviours().add(new InterceptBehaviour(classToIntercept, interceptor));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy