Package com.github.nylle.javafixture
Class Context
- java.lang.Object
-
- com.github.nylle.javafixture.Context
-
public class Context extends Object
-
-
Constructor Summary
Constructors Constructor Description Context(Configuration configuration)Context(Configuration configuration, Map<Integer,Object> predefinedInstances)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Tcached(SpecimenType<?> type, T instance)<T> Tcached(SpecimenType<T> type)ConfigurationgetConfiguration()booleanisCached(SpecimenType<?> type)<T> TpreDefined(SpecimenType<T> type, T instance)
-
-
-
Constructor Detail
-
Context
public Context(Configuration configuration)
-
Context
public Context(Configuration configuration, Map<Integer,Object> predefinedInstances)
-
-
Method Detail
-
getConfiguration
public Configuration getConfiguration()
-
isCached
public boolean isCached(SpecimenType<?> type)
-
cached
public <T> T cached(SpecimenType<?> type, T instance)
-
cached
public <T> T cached(SpecimenType<T> type)
-
preDefined
public <T> T preDefined(SpecimenType<T> type, T instance)
-
-