com.natpryce.makeiteasy
Class MakeItEasy
java.lang.Object
com.natpryce.makeiteasy.MakeItEasy
public class MakeItEasy
- extends Object
Syntactic sugar for using Make It Easy test-data builders.
|
Method Summary |
static
|
a(Instantiator<T> instantiator,
PropertyValue<? super T,?>... propertyProviders)
|
static
|
an(Instantiator<T> instantiator,
PropertyValue<? super T,?>... propertyProviders)
|
static
|
from(Iterable<T> values)
|
static
|
from(T... values)
|
static
|
fromRepeating(Iterable<T> values)
|
static
|
fromRepeating(T... values)
|
static
|
listOf(Donor<? extends T>... donors)
|
static
|
make(Maker<T> maker)
|
static
|
setOf(Donor<? extends T>... donors)
|
static
|
sortedSetOf(Donor<? extends T>... donors)
|
static
|
theSame(Donor<T> originalDonor)
|
static
|
theSame(Instantiator<T> instantiator,
PropertyValue<? super T,?>... propertyProviders)
|
static
|
with(Donor<W> valueDonor,
Property<T,V> property)
|
static
|
with(Property<T,V> property,
Donor<W> valueDonor)
|
static
|
with(Property<T,V> property,
W value)
|
static
|
with(W value,
Property<T,V> property)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MakeItEasy
public MakeItEasy()
a
public static <T> Maker<T> a(Instantiator<T> instantiator,
PropertyValue<? super T,?>... propertyProviders)
an
public static <T> Maker<T> an(Instantiator<T> instantiator,
PropertyValue<? super T,?>... propertyProviders)
with
public static <T,V,W extends V> PropertyValue<T,V> with(Property<T,V> property,
W value)
with
public static <T,V,W extends V> PropertyValue<T,V> with(W value,
Property<T,V> property)
with
public static <T,V,W extends V> PropertyValue<T,V> with(Property<T,V> property,
Donor<W> valueDonor)
with
public static <T,V,W extends V> PropertyValue<T,V> with(Donor<W> valueDonor,
Property<T,V> property)
theSame
public static <T> Donor<T> theSame(Instantiator<T> instantiator,
PropertyValue<? super T,?>... propertyProviders)
theSame
public static <T> Donor<T> theSame(Donor<T> originalDonor)
make
public static <T> T make(Maker<T> maker)
listOf
public static <T> Donor<List<T>> listOf(Donor<? extends T>... donors)
setOf
public static <T> Donor<Set<T>> setOf(Donor<? extends T>... donors)
sortedSetOf
public static <T extends Comparable<T>> Donor<SortedSet<T>> sortedSetOf(Donor<? extends T>... donors)
from
public static <T> Donor<T> from(Iterable<T> values)
from
public static <T> Donor<T> from(T... values)
fromRepeating
public static <T> Donor<T> fromRepeating(Iterable<T> values)
fromRepeating
public static <T> Donor<T> fromRepeating(T... values)
Copyright © 2010. All Rights Reserved.