public interface IterableFluent<T,Value extends Iterable<T>,BaseFluent,TheFluent extends BaseFluent,This extends IterableFluent<T,Value,BaseFluent,TheFluent,This>> extends org.cthul.matchers.fluent.ext.ExtensibleFluentStep<Value,BaseFluent,TheFluent,This>, ObjectFluent<Value,BaseFluent,TheFluent,This>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
IterableFluent.AndChain<T,Value extends Iterable<T>,TheFluent,This extends IterableFluent.AndChain<T,Value,TheFluent,This>> |
static class |
IterableFluent.Assert<T,Value extends Iterable<T>> |
static interface |
IterableFluent.OrChain<T,Value extends Iterable<T>,TheFluent,This extends IterableFluent.OrChain<T,Value,TheFluent,This>> |
static class |
IterableFluent.Step<T,Value extends Iterable<T>,TheFluent,This extends IterableFluent.Step<T,Value,TheFluent,This>> |
get, get, hasToString, hasToString, isIn, isIn, isOneOf, notNullValue, nullValue, sameInstance, theInstance__, __, __, allOf, anyOf, as, as, equalTo, has, has, has, has, hasNot, hasNot, hasNot, hasNot, hasType, is, is, is, isA, isNot, isNot, isNot, noneOf, not, not, not, not, notdefault TheFluent empty()
Iterables matching examined iterables that yield no items.
For example:
assertThat(new ArrayList<String>(), is(emptyIterable()))
IsEmptyIterable.emptyIterable()default TheFluent contains(T... items)
Iterables that matches when a single pass over the
examined Iterable yields a series of items, each logically equal to the
corresponding item in the specified items. For a positive match, the examined iterable
must be of the same length as the number of specified items.
For example:
assertThat(Arrays.asList("foo", "bar"), contains("foo", "bar"))items - the items that must equal the items provided by an examined IterableIsIterableContainingInOrder.contains(java.lang.Object...)default TheFluent contains(org.hamcrest.Matcher<? super T> itemMatcher)
Iterables that matches when a single pass over the
examined Iterable yields a single item that satisfies the specified matcher.
For a positive match, the examined iterable must only yield one item.
For example:
assertThat(Arrays.asList("foo"), contains(equalTo("foo")))itemMatcher - the matcher that must be satisfied by the single item provided by an
examined IterableIsIterableContainingInOrder.contains(org.hamcrest.Matcher)default TheFluent contains(org.hamcrest.Matcher<? super T>... itemMatchers)
Iterables that matches when a single pass over the
examined Iterable yields a series of items, each satisfying the corresponding
matcher in the specified matchers. For a positive match, the examined iterable
must be of the same length as the number of specified matchers.
For example:
assertThat(Arrays.asList("foo", "bar"), contains(equalTo("foo"), equalTo("bar")))itemMatchers - the matchers that must be satisfied by the items provided by an examined IterableIsIterableContainingInOrder.contains(org.hamcrest.Matcher...)default TheFluent contains(List<org.hamcrest.Matcher<? super T>> itemMatchers)
Iterables that matches when a single pass over the
examined Iterable yields a series of items, each satisfying the corresponding
matcher in the specified list of matchers. For a positive match, the examined iterable
must be of the same length as the specified list of matchers.
For example:
assertThat(Arrays.asList("foo", "bar"), contains(Arrays.asList(equalTo("foo"), equalTo("bar"))))itemMatchers - a list of matchers, each of which must be satisfied by the corresponding item provided by
an examined IterableIsIterableContainingInOrder.contains(java.util.List)default TheFluent containsInAnyOrder(org.hamcrest.Matcher<? super T>... itemMatchers)
Iterables that matches when a single pass over
the examined Iterable yields a series of items, each satisfying one matcher anywhere
in the specified matchers. For a positive match, the examined iterable must be of the same
length as the number of specified matchers.
N.B. each of the specified matchers will only be used once during a given examination, so be careful when specifying matchers that may be satisfied by more than one entry in an examined iterable.
For example:
assertThat(Arrays.asList("foo", "bar"), containsInAnyOrder(equalTo("bar"), equalTo("foo")))itemMatchers - a list of matchers, each of which must be satisfied by an item provided by an examined IterableIsIterableContainingInAnyOrder.containsInAnyOrder(org.hamcrest.Matcher...)default TheFluent containsInAnyOrder(T... items)
Iterables that matches when a single pass over
the examined Iterable yields a series of items, each logically equal to one item
anywhere in the specified items. For a positive match, the examined iterable
must be of the same length as the number of specified items.
N.B. each of the specified items will only be used once during a given examination, so be careful when specifying items that may be equal to more than one entry in an examined iterable.
For example:
assertThat(Arrays.asList("foo", "bar"), containsInAnyOrder("bar", "foo"))items - the items that must equal the items provided by an examined Iterable in any orderIsIterableContainingInAnyOrder.containsInAnyOrder(java.lang.Object...)default TheFluent containsInAnyOrder(Collection<org.hamcrest.Matcher<? super T>> itemMatchers)
Iterables that matches when a single pass over
the examined Iterable yields a series of items, each satisfying one matcher anywhere
in the specified collection of matchers. For a positive match, the examined iterable
must be of the same length as the specified collection of matchers.
N.B. each matcher in the specified collection will only be used once during a given examination, so be careful when specifying matchers that may be satisfied by more than one entry in an examined iterable.
For example:
assertThat(Arrays.asList("foo", "bar"), containsInAnyOrder(Arrays.asList(equalTo("bar"), equalTo("foo"))))itemMatchers - a list of matchers, each of which must be satisfied by an item provided by an examined IterableIsIterableContainingInAnyOrder.containsInAnyOrder(java.util.Collection)default TheFluent hasSize(int size)
Iterables that matches when a single pass over the
examined Iterable yields an item count that is equal to the specified
size argument.
For example:
assertThat(Arrays.asList("foo", "bar"), iterableWithSize(2))size - the number of items that should be yielded by an examined IterableIsIterableWithSize.iterableWithSize(int)default IntegerFluent.Step<Integer,TheFluent,?> size()
IterableSizeAdapter.size()default <I> ObjectFluent.Step<I,TheFluent,?> any()
AnyOfAdapter.any()default StringFluent.Step<String,TheFluent,?> anyString()
AnyOfAdapter.anyString()default ObjectFluent.Step<Boolean,TheFluent,?> anyBoolean()
AnyOfAdapter.anyBoolean()default DoubleFluent.Step<Double,TheFluent,?> anyDouble()
AnyOfAdapter.anyDouble()default IntegerFluent.Step<Integer,TheFluent,?> anyInt()
AnyOfAdapter.anyInt()default ComparableFluent.Step<Long,Long,TheFluent,?> anyLong()
AnyOfAdapter.anyLong()default <I> ObjectFluent.Step<I,TheFluent,?> each()
EachOfAdapter.each()default StringFluent.Step<String,TheFluent,?> eachString()
EachOfAdapter.eachString()default ObjectFluent.Step<Boolean,TheFluent,?> eachBoolean()
EachOfAdapter.eachBoolean()default DoubleFluent.Step<Double,TheFluent,?> eachDouble()
EachOfAdapter.eachDouble()default IntegerFluent.Step<Integer,TheFluent,?> eachInt()
EachOfAdapter.eachInt()default ComparableFluent.Step<Long,Long,TheFluent,?> eachLong()
EachOfAdapter.eachLong()IterableFluent.OrChain<T,Value,TheFluent,?> either()
either in interface org.cthul.matchers.fluent.ext.ExtensibleFluentStep<Value extends Iterable<T>,BaseFluent,TheFluent extends BaseFluent,This extends IterableFluent<T,Value,BaseFluent,TheFluent,This>>either in interface org.cthul.matchers.fluent.FluentStep<Value extends Iterable<T>,BaseFluent>either in interface ObjectFluent<Value extends Iterable<T>,BaseFluent,TheFluent extends BaseFluent,This extends IterableFluent<T,Value,BaseFluent,TheFluent,This>>IterableFluent.OrChain<T,Value,TheFluent,?> either(org.hamcrest.Matcher<? super Value> matcher)
either in interface org.cthul.matchers.fluent.ext.ExtensibleFluentStep<Value extends Iterable<T>,BaseFluent,TheFluent extends BaseFluent,This extends IterableFluent<T,Value,BaseFluent,TheFluent,This>>either in interface org.cthul.matchers.fluent.FluentStep<Value extends Iterable<T>,BaseFluent>either in interface ObjectFluent<Value extends Iterable<T>,BaseFluent,TheFluent extends BaseFluent,This extends IterableFluent<T,Value,BaseFluent,TheFluent,This>>IterableFluent.AndChain<T,Value,TheFluent,?> both()
both in interface org.cthul.matchers.fluent.ext.ExtensibleFluentStep<Value extends Iterable<T>,BaseFluent,TheFluent extends BaseFluent,This extends IterableFluent<T,Value,BaseFluent,TheFluent,This>>both in interface org.cthul.matchers.fluent.FluentStep<Value extends Iterable<T>,BaseFluent>both in interface ObjectFluent<Value extends Iterable<T>,BaseFluent,TheFluent extends BaseFluent,This extends IterableFluent<T,Value,BaseFluent,TheFluent,This>>IterableFluent.AndChain<T,Value,TheFluent,?> both(org.hamcrest.Matcher<? super Value> matcher)
both in interface org.cthul.matchers.fluent.ext.ExtensibleFluentStep<Value extends Iterable<T>,BaseFluent,TheFluent extends BaseFluent,This extends IterableFluent<T,Value,BaseFluent,TheFluent,This>>both in interface org.cthul.matchers.fluent.FluentStep<Value extends Iterable<T>,BaseFluent>both in interface ObjectFluent<Value extends Iterable<T>,BaseFluent,TheFluent extends BaseFluent,This extends IterableFluent<T,Value,BaseFluent,TheFluent,This>>IterableFluent.AndChain<T,Value,TheFluent,?> all()
all in interface org.cthul.matchers.fluent.ext.ExtensibleFluentStep<Value extends Iterable<T>,BaseFluent,TheFluent extends BaseFluent,This extends IterableFluent<T,Value,BaseFluent,TheFluent,This>>all in interface org.cthul.matchers.fluent.FluentStep<Value extends Iterable<T>,BaseFluent>all in interface ObjectFluent<Value extends Iterable<T>,BaseFluent,TheFluent extends BaseFluent,This extends IterableFluent<T,Value,BaseFluent,TheFluent,This>>Copyright © 2015. All Rights Reserved.