Package | Description |
---|---|
org.assertj.core.api |
Modifier and Type | Class and Description |
---|---|
class |
AbstractListAssert<SELF extends AbstractListAssert<SELF,ACTUAL,ELEMENT,ELEMENT_ASSERT>,ACTUAL extends List<? extends ELEMENT>,ELEMENT,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>>
Base class for all implementations of assertions for
List s. |
Modifier and Type | Class and Description |
---|---|
class |
ClassBasedNavigableListAssert<SELF extends ClassBasedNavigableListAssert<SELF,ACTUAL,ELEMENT,ELEMENT_ASSERT>,ACTUAL extends List<? extends ELEMENT>,ELEMENT,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>>
Build the Assert instance by reflection.
|
class |
FactoryBasedNavigableListAssert<SELF extends FactoryBasedNavigableListAssert<SELF,ACTUAL,ELEMENT,ELEMENT_ASSERT>,ACTUAL extends List<? extends ELEMENT>,ELEMENT,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT,ELEMENT>>
Provides helper methods for navigating a list property in a generated assertion class so we can chain assertions
through deeply nested models more easily.
|
class |
ListAssert<ELEMENT>
Assertion methods for
List s. |
class |
ProxyableListAssert<ELEMENT>
Concrete assertions for
List s without any final methods to allow proxying. |
Modifier and Type | Method and Description |
---|---|
AbstractListAssert<?,List<? extends Object>,Object,ObjectAssert<Object>> |
Assert.asList()
Verifies that the actual value is an instance of List,
and returns a list assertion, to allow chaining of list-specific
assertions from this call.
|
AbstractListAssert<?,List<? extends Object>,Object,ObjectAssert<Object>> |
AbstractAssert.asList()
Verifies that the actual value is an instance of List,
and returns a list assertion, to allow chaining of list-specific
assertions from this call.
|
AbstractListAssert<?,List<? extends Double>,Double,ObjectAssert<Double>> |
AbstractStandardSoftAssertions.assertThat(DoubleStream actual)
Creates a new instance of
from the given DoubleStream . |
AbstractListAssert<?,List<? extends Integer>,Integer,ObjectAssert<Integer>> |
AbstractStandardSoftAssertions.assertThat(IntStream actual)
Creates a new instance of
from the given IntStream . |
static <T> AbstractListAssert<?,List<? extends T>,T,ObjectAssert<T>> |
Java6Assertions.assertThat(List<? extends T> actual)
Creates a new instance of
. |
AbstractListAssert<?,List<? extends Long>,Long,ObjectAssert<Long>> |
AbstractStandardSoftAssertions.assertThat(LongStream actual)
Creates a new instance of
from the given LongStream . |
<ELEMENT> AbstractListAssert<?,List<? extends ELEMENT>,ELEMENT,ObjectAssert<ELEMENT>> |
AbstractStandardSoftAssertions.assertThat(Stream<? extends ELEMENT> actual)
Creates a new instance of
from the given Stream . |
static AbstractListAssert<?,List<? extends Double>,Double,ObjectAssert<Double>> |
Assumptions.assumeThat(DoubleStream actual)
Creates a new instance of
assumption from the given DoubleStream . |
default AbstractListAssert<?,List<? extends Double>,Double,ObjectAssert<Double>> |
WithAssumptions.assumeThat(DoubleStream doubleStream)
Creates a new instance of
assumption from the given DoubleStream . |
static AbstractListAssert<?,List<? extends Integer>,Integer,ObjectAssert<Integer>> |
Assumptions.assumeThat(IntStream actual)
Creates a new instance of
assumption from the given IntStream . |
default AbstractListAssert<?,List<? extends Integer>,Integer,ObjectAssert<Integer>> |
WithAssumptions.assumeThat(IntStream intStream)
Creates a new instance of
assumption from the given IntStream . |
static AbstractListAssert<?,List<? extends Long>,Long,ObjectAssert<Long>> |
Assumptions.assumeThat(LongStream actual)
Creates a new instance of
assumption from the given LongStream . |
default AbstractListAssert<?,List<? extends Long>,Long,ObjectAssert<Long>> |
WithAssumptions.assumeThat(LongStream longStream)
Creates a new instance of
assumption from the given LongStream . |
static <ELEMENT> AbstractListAssert<?,List<? extends ELEMENT>,ELEMENT,ObjectAssert<ELEMENT>> |
Assumptions.assumeThat(Stream<? extends ELEMENT> actual)
Creates a new instance of
assumption from the given Stream . |
default <ELEMENT> AbstractListAssert<?,List<? extends ELEMENT>,ELEMENT,ObjectAssert<ELEMENT>> |
WithAssumptions.assumeThat(Stream<? extends ELEMENT> stream)
Creates a new instance of
assumption from the given Stream . |
AbstractListAssert<?,List<? extends Object>,Object,ObjectAssert<Object>> |
AbstractObjectAssert.extracting(Function<? super ACTUAL,Object>... extractors)
Uses the given
Function s to extract the values from the object under test into a list, this new list becoming
the object under test. |
AbstractListAssert<?,List<? extends Object>,Object,ObjectAssert<Object>> |
ObjectAssert.extracting(Function<? super ACTUAL,Object>... extractors) |
AbstractListAssert<?,List<? extends Tuple>,Tuple,ObjectAssert<Tuple>> |
AbstractIterableAssert.extracting(Function<? super ELEMENT,?>... extractors)
|
AbstractListAssert<?,List<? extends Tuple>,Tuple,ObjectAssert<Tuple>> |
IterableAssert.extracting(Function<? super ELEMENT,?>... extractors) |
AbstractListAssert<?,List<? extends Tuple>,Tuple,ObjectAssert<Tuple>> |
ListAssert.extracting(Function<? super ELEMENT,?>... extractors) |
AbstractListAssert<?,List<? extends Tuple>,Tuple,ObjectAssert<Tuple>> |
AbstractObjectArrayAssert.extracting(Function<? super ELEMENT,?>... extractors)
|
AbstractListAssert<?,List<? extends Tuple>,Tuple,ObjectAssert<Tuple>> |
ObjectArrayAssert.extracting(Function<? super ELEMENT,?>... extractors) |
<U> AbstractListAssert<?,List<? extends U>,U,ObjectAssert<U>> |
AbstractObjectArrayAssert.extracting(Function<? super ELEMENT,U> extractor)
Extract the values from the array's elements by applying an extracting function on them, the resulting list becomes
the new object under test.
|
<V> AbstractListAssert<?,List<? extends V>,V,ObjectAssert<V>> |
AbstractIterableAssert.extracting(Function<? super ELEMENT,V> extractor)
Extract the values from Iterable's elements under test by applying an extracting function on them.
|
AbstractListAssert<?,List<?>,Object,ObjectAssert<Object>> |
MapAssert.extracting(Function<? super Map<KEY,VALUE>,Object>... extractors) |
AbstractListAssert<?,List<? extends Object>,Object,ObjectAssert<Object>> |
AbstractMapAssert.extracting(Object... keys)
Extract the values of given keys from the map under test into an array, this new array becoming
the object under test.
|
AbstractListAssert<?,List<? extends Tuple>,Tuple,ObjectAssert<Tuple>> |
AbstractIterableAssert.extracting(String... propertiesOrFields)
Extract the values of the given fields/properties from the Iterable's elements under test into a new Iterable composed
of Tuples (a simple data structure), this new Iterable becoming the Iterable under test.
|
AbstractListAssert<?,List<? extends Object>,Object,ObjectAssert<Object>> |
AbstractObjectAssert.extracting(String... propertiesOrFields)
Extracts the values of given fields/properties from the object under test into a list, this new list becoming
the object under test.
|
AbstractListAssert<?,List<? extends Tuple>,Tuple,ObjectAssert<Tuple>> |
AbstractObjectArrayAssert.extracting(String... propertiesOrFields)
Extract the values of given fields/properties from the array's elements under test into a list composed of
Tuple (a simple data structure), this new list becoming the object under test.
|
AbstractListAssert<?,List<? extends Object>,Object,ObjectAssert<Object>> |
AbstractIterableAssert.extracting(String propertyOrField)
Extract the values of the given field or property from the Iterable's elements under test into a new Iterable, this new
Iterable becoming the Iterable under test.
|
AbstractListAssert<?,List<? extends Object>,Object,ObjectAssert<Object>> |
AbstractObjectArrayAssert.extracting(String fieldOrProperty)
Extract the values of given field or property from the array's elements under test into a new list, this new list
becoming the object under test.
|
<P> AbstractListAssert<?,List<? extends P>,P,ObjectAssert<P>> |
AbstractIterableAssert.extracting(String propertyOrField,
Class<P> extractingType)
Extract the values of given field or property from the Iterable's elements under test into a new Iterable, this new
Iterable becoming the Iterable under test.
|
<P> AbstractListAssert<?,List<? extends P>,P,ObjectAssert<P>> |
AbstractObjectArrayAssert.extracting(String fieldOrProperty,
Class<P> extractingType)
Extract the values of given field or property from the array's elements under test into a new list, this new list of the provided type
becoming the object under test.
|
<V,EXCEPTION extends Exception> |
AbstractIterableAssert.extracting(ThrowingExtractor<? super ELEMENT,V,EXCEPTION> extractor)
Extract the values from Iterable's elements under test by applying an extracting function (which might throw an
exception) on them.
|
<V,EXCEPTION extends Exception> |
AbstractObjectArrayAssert.extracting(ThrowingExtractor<? super ELEMENT,V,EXCEPTION> extractor)
Extract the values from the array's elements by applying an extracting function (which might throw an exception)
on them, the resulting list of extracted values becomes a new object under test.
|
AbstractListAssert<?,List<? extends Tuple>,Tuple,ObjectAssert<Tuple>> |
MapAssert.extractingFromEntries(Function<? super Map.Entry<KEY,VALUE>,Object>... extractors) |
AbstractListAssert<?,List<? extends Tuple>,Tuple,ObjectAssert<Tuple>> |
AbstractMapAssert.extractingFromEntries(Function<? super Map.Entry<K,V>,Object>... extractors)
|
AbstractListAssert<?,List<?>,Object,ObjectAssert<Object>> |
AbstractMapAssert.extractingFromEntries(Function<? super Map.Entry<K,V>,Object> extractor)
|
AbstractListAssert<?,List<? extends Object>,Object,ObjectAssert<Object>> |
AbstractIterableAssert.extractingResultOf(String method)
Extract the result of given method invocation on the Iterable's elements under test into a new Iterable, this new
Iterable becoming the Iterable under test.
|
AbstractListAssert<?,List<? extends Object>,Object,ObjectAssert<Object>> |
AbstractObjectArrayAssert.extractingResultOf(String method)
Extract the result of given method invocation from the array's elements under test into a list, this list becoming
the object under test.
|
<P> AbstractListAssert<?,List<? extends P>,P,ObjectAssert<P>> |
AbstractIterableAssert.extractingResultOf(String method,
Class<P> extractedType)
Extract the result of given method invocation on the Iterable's elements under test into a new list of the given
class, this new List becoming the object under test.
|
<P> AbstractListAssert<?,List<? extends P>,P,ObjectAssert<P>> |
AbstractObjectArrayAssert.extractingResultOf(String method,
Class<P> extractingType)
Extract the result of given method invocation from the array's elements under test into a list, this list becoming
the object under test.
|
AbstractListAssert<?,List<? extends Object>,Object,ObjectAssert<Object>> |
AbstractIterableAssert.flatExtracting(Function<? super ELEMENT,?>... extractors)
Extract multiple values from each
Iterable 's element according to the given Function s
and concatenate/flatten the extracted values in a list that is used as the new object under test. |
AbstractListAssert<?,List<? extends Object>,Object,ObjectAssert<Object>> |
IterableAssert.flatExtracting(Function<? super ELEMENT,?>... extractors) |
AbstractListAssert<?,List<? extends Object>,Object,ObjectAssert<Object>> |
ListAssert.flatExtracting(Function<? super ELEMENT,?>... extractors) |
<V> AbstractListAssert<?,List<? extends V>,V,ObjectAssert<V>> |
AbstractIterableAssert.flatExtracting(Function<? super ELEMENT,? extends Collection<V>> extractor)
Extract the Iterable values from Iterable's elements under test by applying an Iterable extracting function on them
and concatenating the result lists.
|
<V,C extends Collection<V>> |
AbstractObjectArrayAssert.flatExtracting(Function<? super ELEMENT,C> extractor)
Extract the Iterable values from arrays elements under test by applying an Iterable extracting function on them
and concatenating the result lists into an array which becomes the new object under test.
|
AbstractListAssert<?,List<? extends Object>,Object,ObjectAssert<Object>> |
AbstractIterableAssert.flatExtracting(String... fieldOrPropertyNames)
Extract the given property/field values from each
Iterable 's element and
flatten the extracted values in a list that is used as the new object under test. |
AbstractListAssert<?,List<? extends Object>,Object,ObjectAssert<Object>> |
AbstractMapAssert.flatExtracting(String... keys)
Flatten the values of the given keys from the actual map under test into a new array, this new array becoming the object under test.
|
AbstractListAssert<?,List<? extends Object>,Object,ObjectAssert<Object>> |
AbstractIterableAssert.flatExtracting(String fieldOrPropertyName)
Extract from Iterable's elements the Iterable/Array values corresponding to the given property/field name and
concatenate them into a single list becoming the new object under test.
|
AbstractListAssert<?,List<? extends Object>,Object,ObjectAssert<Object>> |
AbstractObjectArrayAssert.flatExtracting(String propertyName)
Extract from array's elements the Iterable/Array values corresponding to the given property/field name and
concatenate them into a single array becoming the new object under test.
|
<EXCEPTION extends Exception> |
AbstractIterableAssert.flatExtracting(ThrowingExtractor<? super ELEMENT,?,EXCEPTION>... extractors)
Extract multiple values from each
Iterable 's element according to the given ThrowingExtractor s
and concatenate/flatten the extracted values in a list that is used as the new object under test. |
<EXCEPTION extends Exception> |
IterableAssert.flatExtracting(ThrowingExtractor<? super ELEMENT,?,EXCEPTION>... extractors) |
<EXCEPTION extends Exception> |
ListAssert.flatExtracting(ThrowingExtractor<? super ELEMENT,?,EXCEPTION>... extractors) |
<V,EXCEPTION extends Exception> |
AbstractIterableAssert.flatExtracting(ThrowingExtractor<? super ELEMENT,? extends Collection<V>,EXCEPTION> extractor)
Extract the Iterable values from Iterable's elements under test by applying an Iterable extracting function (which
might throw an exception) on them and concatenating the result lists.
|
<V,C extends Collection<V>,EXCEPTION extends Exception> |
AbstractObjectArrayAssert.flatExtracting(ThrowingExtractor<? super ELEMENT,C,EXCEPTION> extractor)
Extract the Iterable values from arrays elements under test by applying an Iterable extracting function (which
might throw an exception) on them and concatenating the result lists into an array which becomes the new object
under test.
|
protected <E> AbstractListAssert<?,List<? extends E>,E,ObjectAssert<E>> |
ProxyableObjectArrayAssert.newListAssertInstance(List<? extends E> newActual) |
protected <E> AbstractListAssert<?,List<? extends E>,E,ObjectAssert<E>> |
AbstractAssert.newListAssertInstance(List<? extends E> newActual)
Create a
AbstractListAssert . |
protected <E> AbstractListAssert<?,List<? extends E>,E,ObjectAssert<E>> |
AbstractObjectArrayAssert.newListAssertInstance(List<? extends E> newActual)
Create a friendly soft or "hard" assertion.
|
protected <ELEMENT> AbstractListAssert<?,List<? extends ELEMENT>,ELEMENT,ObjectAssert<ELEMENT>> |
ProxyableObjectAssert.newListAssertInstance(List<? extends ELEMENT> newActual) |
protected <ELEMENT> AbstractListAssert<?,List<? extends ELEMENT>,ELEMENT,ObjectAssert<ELEMENT>> |
ProxyableMapAssert.newListAssertInstance(List<? extends ELEMENT> newActual) |
protected <ELEMENT2> AbstractListAssert<?,List<? extends ELEMENT2>,ELEMENT2,ObjectAssert<ELEMENT2>> |
ProxyableIterableAssert.newListAssertInstance(List<? extends ELEMENT2> newActual) |
protected <ELEMENT2> AbstractListAssert<?,List<? extends ELEMENT2>,ELEMENT2,ObjectAssert<ELEMENT2>> |
ProxyableListAssert.newListAssertInstance(List<? extends ELEMENT2> newActual) |
AbstractListAssert<?,List<? extends Double>,Double,ObjectAssert<Double>> |
AbstractBDDSoftAssertions.then(DoubleStream actual)
Creates a new instance of
from the given DoubleStream . |
AbstractListAssert<?,List<? extends Integer>,Integer,ObjectAssert<Integer>> |
AbstractBDDSoftAssertions.then(IntStream actual)
Creates a new instance of
from the given IntStream . |
static <T> AbstractListAssert<?,List<? extends T>,T,ObjectAssert<T>> |
Java6BDDAssertions.then(List<? extends T> actual)
Creates a new instance of
. |
AbstractListAssert<?,List<? extends Long>,Long,ObjectAssert<Long>> |
AbstractBDDSoftAssertions.then(LongStream actual)
Creates a new instance of
from the given LongStream . |
<ELEMENT> AbstractListAssert<?,List<? extends ELEMENT>,ELEMENT,ObjectAssert<ELEMENT>> |
AbstractBDDSoftAssertions.then(Stream<? extends ELEMENT> actual)
Creates a new instance of
from the given Stream . |
Copyright © 2014–2019 AssertJ. All rights reserved.