com.natpryce.makeiteasy
Class MakeItEasy

java.lang.Object
  extended by com.natpryce.makeiteasy.MakeItEasy

public class MakeItEasy
extends Object

Syntactic sugar for using Make It Easy test-data builders.


Constructor Summary
MakeItEasy()
           
 
Method Summary
static
<T> Maker<T>
a(Instantiator<T> instantiator, PropertyValue<? super T,?>... propertyProviders)
           
static
<T> Maker<T>
an(Instantiator<T> instantiator, PropertyValue<? super T,?>... propertyProviders)
           
static
<T> Donor<T>
from(Iterable<T> values)
           
static
<T> Donor<T>
from(T... values)
           
static
<T> Donor<T>
fromRepeating(Iterable<T> values)
           
static
<T> Donor<T>
fromRepeating(T... values)
           
static
<T> Donor<List<T>>
listOf(Donor<? extends T>... donors)
           
static
<T> T
make(Maker<T> maker)
           
static
<T> Donor<Set<T>>
setOf(Donor<? extends T>... donors)
           
static
<T extends Comparable<T>>
Donor<SortedSet<T>>
sortedSetOf(Donor<? extends T>... donors)
           
static
<T> Donor<T>
theSame(Donor<T> originalDonor)
           
static
<T> Donor<T>
theSame(Instantiator<T> instantiator, PropertyValue<? super T,?>... propertyProviders)
           
static
<T,V,W extends V>
PropertyValue<T,V>
with(Donor<W> valueDonor, Property<T,V> property)
           
static
<T,V,W extends V>
PropertyValue<T,V>
with(Property<T,V> property, Donor<W> valueDonor)
           
static
<T,V,W extends V>
PropertyValue<T,V>
with(Property<T,V> property, W value)
           
static
<T,V,W extends V>
PropertyValue<T,V>
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
 

Constructor Detail

MakeItEasy

public MakeItEasy()
Method Detail

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.