Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
B
C
D
E
F
H
I
L
M
N
O
P
R
S
T
U
V
W
A
a(Instantiator<T>, PropertyValue<? super T, ?>...)
- Static method in class com.natpryce.makeiteasy.
MakeItEasy
aBanana()
- Static method in class example.fruit.oldskool.
BananaBuilder
allocatingNamesByChain()
- Method in class example.donors.
DonorExample
allocatingNamesByIndex()
- Method in class example.donors.
DonorExample
allocatingNamesFromACollection()
- Method in class example.donors.
DonorExample
allocatingUniqueNames()
- Method in class example.donors.
DonorExample
an(Instantiator<T>, PropertyValue<? super T, ?>...)
- Static method in class com.natpryce.makeiteasy.
MakeItEasy
anApple()
- Static method in class example.fruit.oldskool.
AppleBuilder
Apple
- Class in
example.fruit
Apple(int)
- Constructor for class example.fruit.
Apple
Apple
- Static variable in class example.fruit.makeiteasy.
FruitMakers
AppleBuilder
- Class in
example.fruit.oldskool
AppleCart
- Class in
example.fruit
An example of how to define builders for properties that are collections.
AppleCart(Iterable<Apple>)
- Constructor for class example.fruit.
AppleCart
AppleCart
- Static variable in class example.fruit.makeiteasy.
AppleCartMaker
AppleCartMaker
- Class in
example.fruit.makeiteasy
An example of how to define builders for properties that are collections.
AppleCartMaker()
- Constructor for class example.fruit.makeiteasy.
AppleCartMaker
apples
- Static variable in class example.fruit.makeiteasy.
AppleCartMaker
apples
- Static variable in class example.fruit.makeiteasy.
TreeMaker
AppleTree
- Static variable in class example.fruit.makeiteasy.
TreeMaker
B
Banana
- Class in
example.fruit
Banana(double)
- Constructor for class example.fruit.
Banana
Banana
- Static variable in class example.fruit.makeiteasy.
FruitMakers
BananaBuilder
- Class in
example.fruit.oldskool
bananas
- Static variable in class example.fruit.makeiteasy.
TreeMaker
BananaTree
- Static variable in class example.fruit.makeiteasy.
TreeMaker
build()
- Method in class example.fruit.oldskool.
AppleBuilder
build()
- Method in class example.fruit.oldskool.
BananaBuilder
build()
- Method in interface example.fruit.oldskool.
Builder
Builder
<
T
> - Interface in
example.fruit.oldskool
but(PropertyValue<? super T, ?>...)
- Method in class com.natpryce.makeiteasy.
Maker
Returns a new Maker for the same type of object and with the same initial state except where overridden by the given
propertyValues
.
but()
- Method in class example.fruit.oldskool.
AppleBuilder
but()
- Method in class example.fruit.oldskool.
BananaBuilder
C
ChainedSequence
<
T
> - Class in
com.natpryce.makeiteasy.sequence
A sequence of values, each of which is calculated from the previous value in the sequence.
ChainedSequence()
- Constructor for class com.natpryce.makeiteasy.sequence.
ChainedSequence
com.natpryce.makeiteasy
- package com.natpryce.makeiteasy
A tiny framework to make it easy to write
Test Data Builders
in Java.
com.natpryce.makeiteasy.sequence
- package com.natpryce.makeiteasy.sequence
contents
- Static variable in class example.fruit.makeiteasy.
FruitBowlMaker
currentLoad()
- Method in class example.fruit.
AppleCart
curve
- Variable in class example.fruit.
Banana
curve()
- Method in class example.fruit.
Banana
curve
- Static variable in class example.fruit.makeiteasy.
FruitMakers
D
Donor
<
T
> - Interface in
com.natpryce.makeiteasy
Provides a value or values to other things.
DonorExample
- Class in
example.donors
DonorExample()
- Constructor for class example.donors.
DonorExample
DonorExample.NamedThing
- Class in
example.donors
DonorExample.NamedThing(String)
- Constructor for class example.donors.
DonorExample.NamedThing
E
ElementsSequence
<
T
> - Class in
com.natpryce.makeiteasy.sequence
ElementsSequence(Iterable<T>, Iterable<T>)
- Constructor for class com.natpryce.makeiteasy.sequence.
ElementsSequence
example.donors
- package example.donors
example.fruit
- package example.fruit
example.fruit.makeiteasy
- package example.fruit.makeiteasy
example.fruit.oldskool
- package example.fruit.oldskool
F
firstValue()
- Method in class com.natpryce.makeiteasy.sequence.
ChainedSequence
Returns the first value in the sequence.
from(Iterable<T>)
- Static method in class com.natpryce.makeiteasy.
MakeItEasy
from(T...)
- Static method in class com.natpryce.makeiteasy.
MakeItEasy
fromRepeating(Iterable<T>)
- Static method in class com.natpryce.makeiteasy.
MakeItEasy
fromRepeating(T...)
- Static method in class com.natpryce.makeiteasy.
MakeItEasy
Fruit
- Class in
example.fruit
Fruit()
- Constructor for class example.fruit.
Fruit
fruit()
- Static method in class example.fruit.makeiteasy.
TreeMaker
FruitBowl
- Class in
example.fruit
An example of how to define builders for properties that are collections.
FruitBowl(Iterable<? extends Fruit>)
- Constructor for class example.fruit.
FruitBowl
FruitBowl
- Static variable in class example.fruit.makeiteasy.
FruitBowlMaker
FruitBowlMaker
- Class in
example.fruit.makeiteasy
An example of how to define builders for properties that are collections.
FruitBowlMaker()
- Constructor for class example.fruit.makeiteasy.
FruitBowlMaker
FruitMakers
- Class in
example.fruit.makeiteasy
FruitMakers()
- Constructor for class example.fruit.makeiteasy.
FruitMakers
H
howToMakeGenericObjects()
- Static method in class example.fruit.makeiteasy.
MakeItEasyExample
howToMakeObjectsWithPropertiesThatAreCollections()
- Static method in class example.fruit.makeiteasy.
MakeItEasyExample
howToMakeSimpleObjects()
- Static method in class example.fruit.makeiteasy.
MakeItEasyExample
howToMakeSimpleObjects()
- Static method in class example.fruit.oldskool.
OldSkoolBuildersExample
I
IndexedSequence
<
T
> - Class in
com.natpryce.makeiteasy.sequence
A sequence of values, each of which is calculated from its index in the sequence.
IndexedSequence()
- Constructor for class com.natpryce.makeiteasy.sequence.
IndexedSequence
instantiate(PropertyLookup<T>)
- Method in interface com.natpryce.makeiteasy.
Instantiator
Instantiates a new object.
Instantiator
<
T
> - Interface in
com.natpryce.makeiteasy
Instantiates an object, with an initial state specified by some given property values or defaults defined by the implementer of this interface.
isEmpty()
- Method in class example.fruit.
FruitBowl
isRipe()
- Method in class example.fruit.
Fruit
iterator()
- Method in class example.fruit.
Tree
L
leaves
- Static variable in class example.fruit.makeiteasy.
FruitMakers
listOf(Donor<? extends T>...)
- Static method in class com.natpryce.makeiteasy.
MakeItEasy
M
make(Maker<T>)
- Static method in class com.natpryce.makeiteasy.
MakeItEasy
make()
- Method in class com.natpryce.makeiteasy.
Maker
Makes a new object.
MakeItEasy
- Class in
com.natpryce.makeiteasy
Syntactic sugar for using Make It Easy test-data builders.
MakeItEasy()
- Constructor for class com.natpryce.makeiteasy.
MakeItEasy
MakeItEasyExample
- Class in
example.fruit.makeiteasy
MakeItEasyExample()
- Constructor for class example.fruit.makeiteasy.
MakeItEasyExample
Maker
<
T
> - Class in
com.natpryce.makeiteasy
Makes objects of a given type with a specified initial state.
Maker(Instantiator<T>, PropertyValue<? super T, ?>...)
- Constructor for class com.natpryce.makeiteasy.
Maker
Creates a Maker for objects of a given type with a given initial state.
N
name
- Static variable in class example.donors.
DonorExample
name
- Variable in class example.donors.
DonorExample.NamedThing
NamedThing
- Static variable in class example.donors.
DonorExample
newCollection()
- Method in class com.natpryce.makeiteasy.
NewCollectionDonor
NewCollectionDonor
<
T
extends
Collection
<
E
>,
E
> - Class in
com.natpryce.makeiteasy
NewCollectionDonor(Donor<? extends E>...)
- Constructor for class com.natpryce.makeiteasy.
NewCollectionDonor
NewCollectionDonor(Iterable<? extends Donor<? extends E>>)
- Constructor for class com.natpryce.makeiteasy.
NewCollectionDonor
newProperty()
- Static method in class com.natpryce.makeiteasy.
Property
numberOfLeaves()
- Method in class example.fruit.
Apple
O
OldSkoolBuildersExample
- Class in
example.fruit.oldskool
OldSkoolBuildersExample()
- Constructor for class example.fruit.oldskool.
OldSkoolBuildersExample
P
Property
<
T
,
V
> - Class in
com.natpryce.makeiteasy
An opaque "handle" that represents a property of of some type of object.
Property()
- Constructor for class com.natpryce.makeiteasy.
Property
property()
- Method in class com.natpryce.makeiteasy.
PropertyValue
The property
PropertyLookup
<
T
> - Interface in
com.natpryce.makeiteasy
Looks up property values.
PropertyValue
<
T
,
V
> - Class in
com.natpryce.makeiteasy
The value of a property.
PropertyValue(Property<T, V>, Donor<? extends V>)
- Constructor for class com.natpryce.makeiteasy.
PropertyValue
R
ripen(double)
- Method in class example.fruit.
Fruit
ripeness
- Static variable in class example.fruit.makeiteasy.
FruitMakers
S
SameValueDonor
<
T
> - Class in
com.natpryce.makeiteasy
Always gives the sale value.
SameValueDonor(T)
- Constructor for class com.natpryce.makeiteasy.
SameValueDonor
SequenceDonor
<
T
> - Class in
com.natpryce.makeiteasy
SequenceDonor()
- Constructor for class com.natpryce.makeiteasy.
SequenceDonor
setOf(Donor<? extends T>...)
- Static method in class com.natpryce.makeiteasy.
MakeItEasy
sortedSetOf(Donor<? extends T>...)
- Static method in class com.natpryce.makeiteasy.
MakeItEasy
T
takeOne()
- Method in class example.fruit.
FruitBowl
theSame(Instantiator<T>, PropertyValue<? super T, ?>...)
- Static method in class com.natpryce.makeiteasy.
MakeItEasy
theSame(Donor<T>)
- Static method in class com.natpryce.makeiteasy.
MakeItEasy
Tree()
- Static method in class example.fruit.makeiteasy.
TreeMaker
Tree
<
T
extends
Fruit
> - Class in
example.fruit
Tree(Iterable<? extends T>)
- Constructor for class example.fruit.
Tree
TreeMaker
- Class in
example.fruit.makeiteasy
Java's broken type system makes it harder than it should be to define Properties and Instantiators for generic types.
TreeMaker()
- Constructor for class example.fruit.makeiteasy.
TreeMaker
U
upset()
- Method in class example.fruit.
AppleCart
V
value()
- Method in interface com.natpryce.makeiteasy.
Donor
Donate the value.
value()
- Method in class com.natpryce.makeiteasy.
Maker
value()
- Method in class com.natpryce.makeiteasy.
NewCollectionDonor
value()
- Method in class com.natpryce.makeiteasy.
PropertyValue
The property's value
value()
- Method in class com.natpryce.makeiteasy.
SameValueDonor
value()
- Method in class com.natpryce.makeiteasy.sequence.
ChainedSequence
value()
- Method in class com.natpryce.makeiteasy.sequence.
ElementsSequence
value()
- Method in class com.natpryce.makeiteasy.sequence.
IndexedSequence
value()
- Method in class com.natpryce.makeiteasy.
SequenceDonor
valueAfter(T)
- Method in class com.natpryce.makeiteasy.sequence.
ChainedSequence
Return the value after a given value.
valueAt(int)
- Method in class com.natpryce.makeiteasy.sequence.
IndexedSequence
Return the value at a given index.
valueOf(Property<? super T, V>, V)
- Method in class com.natpryce.makeiteasy.
Maker
valueOf(Property<? super T, V>, Donor<? extends V>)
- Method in class com.natpryce.makeiteasy.
Maker
valueOf(Property<? super T, V>, V)
- Method in interface com.natpryce.makeiteasy.
PropertyLookup
valueOf(Property<? super T, V>, Donor<? extends V>)
- Method in interface com.natpryce.makeiteasy.
PropertyLookup
valueWithIndex(long)
- Method in class com.natpryce.makeiteasy.
SequenceDonor
W
with(Property<T, V>, W)
- Static method in class com.natpryce.makeiteasy.
MakeItEasy
with(W, Property<T, V>)
- Static method in class com.natpryce.makeiteasy.
MakeItEasy
with(Property<T, V>, Donor<W>)
- Static method in class com.natpryce.makeiteasy.
MakeItEasy
with(Donor<W>, Property<T, V>)
- Static method in class com.natpryce.makeiteasy.
MakeItEasy
withCurve(double)
- Method in class example.fruit.oldskool.
BananaBuilder
withLeaves(int)
- Method in class example.fruit.oldskool.
AppleBuilder
withRipeness(double)
- Method in class example.fruit.oldskool.
AppleBuilder
withRipeness(double)
- Method in class example.fruit.oldskool.
BananaBuilder
A
B
C
D
E
F
H
I
L
M
N
O
P
R
S
T
U
V
W
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
Copyright © 2010. All Rights Reserved.