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

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

import com.flextrade.jfixture.customisation.Customisation;
import com.flextrade.jfixture.customisation.fluent.AutoPropertyBehaviour;
import com.flextrade.jfixture.customisation.fluent.NoResolutionBehaviour;
import com.flextrade.jfixture.customisation.fluent.RecursionBehaviour;
import com.flextrade.jfixture.utility.Interceptor;

import java.lang.reflect.Type;

public interface FluentCustomisation {

    FluentCustomisation repeatCount(int count);

     FluentCustomisation sameInstance(Type type, T instance);

     FluentCustomisation sameInstance(Class clazz, T instance);

     FluentCustomisation lazyInstance(Type type, SpecimenSupplier supplier);

     FluentCustomisation lazyInstance(Class clazz, SpecimenSupplier supplier);

     FluentCustomisation propertyOf(Class clazz, String name, Object value);

     FluentCustomisation useSubType(Class baseClass, Class subClass);

    FluentCustomisation add(Customisation customisation);

     FluentCustomisation intercept(Class clazz, Interceptor interceptor);

    RecursionBehaviour circularDependencyBehaviour();

    NoResolutionBehaviour noResolutionBehaviour();

    AutoPropertyBehaviour autoPropertyBehaviour();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy