| Package | Description |
|---|---|
| org.assertj.core.api |
| Modifier and Type | Field and Description |
|---|---|
static InstanceOfAssertFactory<Collection,AbstractCollectionAssert<?,Collection<?>,Object,ObjectAssert<Object>>> |
InstanceOfAssertFactories.COLLECTION
|
| Modifier and Type | Method and Description |
|---|---|
default <T> ObjectAssert<T> |
WithAssertions.assertThat(T actual)
Creates a new instance of
. |
default <T> ObjectAssert<T> |
Java6StandardSoftAssertionsProvider.assertThat(T actual)
Creates a new instance of
. |
static <T> ObjectAssert<T> |
AssertionsForClassTypes.assertThat(T actual)
Creates a new instance of
. |
static <T> ObjectAssert<T> |
Assertions.assertThat(T actual)
Creates a new instance of
. |
default <T> ObjectAssert<T> |
WithAssertions.assertThatObject(T actual)
Creates a new instance of
for any object. |
default <T> ObjectAssert<T> |
Java6StandardSoftAssertionsProvider.assertThatObject(T actual)
Creates a new instance of
for any object. |
static <T> ObjectAssert<T> |
Assertions.assertThatObject(T actual)
Creates a new instance of
for any object. |
default <T> ObjectAssert<T> |
WithAssertions.assertWith(T actual,
Consumer<T>... requirements)
Uses the given instance as the instance under test for all the assertions expressed as the passed
Consumer. |
static <T> ObjectAssert<T> |
Assertions.assertWith(T actual,
Consumer<T>... requirements)
Uses the given instance as the instance under test for all the assertions expressed as the passed
Consumer. |
default <T> ObjectAssert<T> |
WithAssumptions.assumeThat(T actual)
Creates a new instance of
assumption. |
static <T> ObjectAssert<T> |
Assumptions.assumeThat(T actual)
Creates a new instance of
assumption. |
default <T> ObjectAssert<T> |
WithAssumptions.assumeThatObject(T actual)
Creates a new instance of
for any object. |
static <T> ObjectAssert<T> |
Assumptions.assumeThatObject(T actual)
Creates a new instance of
assumption. |
ObjectAssert<T> |
ObjectAssertFactory.createAssert(T t) |
static <T> ObjectAssert<T> |
BDDAssumptions.given(T actual)
Creates a new assumption's instance for an object value.
|
static <T> ObjectAssert<T> |
BDDAssumptions.givenObject(T actual)
Creates a new assumption's instance for an object value.
|
protected ObjectAssert<RESULT> |
AbstractCompletableFutureAssert.newObjectAssert(RESULT objectUnderTest) |
ObjectAssert<ELEMENT> |
AbstractObjectArrayAssert.singleElement()
Verifies that the array under test contains a single element and allows to perform assertions on that element.
|
ObjectAssert<RESULT> |
AbstractFutureAssert.succeedsWithin(Duration timeout)
Waits if necessary for at most the given time for this future to complete and then returns its result for further assertions.
|
ObjectAssert<RESULT> |
AbstractCompletableFutureAssert.succeedsWithin(Duration timeout)
Waits if necessary for at most the given time for this future to complete, and then returns its result for further assertions.
|
ObjectAssert<RESULT> |
AbstractFutureAssert.succeedsWithin(long timeout,
TimeUnit unit)
Waits if necessary for at most the given time for this future to complete and then returns its result for further assertions.
|
ObjectAssert<RESULT> |
AbstractCompletableFutureAssert.succeedsWithin(long timeout,
TimeUnit unit)
Waits if necessary for at most the given time for this future to complete, and then returns its result for further assertions.
|
default <T> ObjectAssert<T> |
Java6BDDSoftAssertionsProvider.then(T actual)
Creates a new instance of
. |
static <T> ObjectAssert<T> |
BDDAssertions.then(T actual)
Creates a new instance of
. |
default <T> ObjectAssert<T> |
Java6BDDSoftAssertionsProvider.thenObject(T actual)
Creates a new instance of
for any object. |
static <T> ObjectAssert<T> |
BDDAssertions.thenObject(T actual)
Creates a new instance of
for any object. |
static <T> ObjectAssert<T> |
BDDAssertions.thenWith(T actual,
Consumer<T>... requirements)
Uses the given instance as the instance under test for all the assertions expressed as the passed
Consumers. |
protected ObjectAssert<ELEMENT> |
CollectionAssert.toAssert(ELEMENT value,
String description) |
| Modifier and Type | Method and Description |
|---|---|
AbstractListAssert<?,List<?>,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<?>,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.
|
default <E> AbstractCollectionAssert<?,Collection<? extends E>,E,ObjectAssert<E>> |
WithAssertions.assertThat(Collection<? extends E> actual)
Creates a new instance of
. |
static <E> AbstractCollectionAssert<?,Collection<? extends E>,E,ObjectAssert<E>> |
AssertionsForInterfaceTypes.assertThat(Collection<? extends E> actual)
Creates a new instance of
. |
static <E> AbstractCollectionAssert<?,Collection<? extends E>,E,ObjectAssert<E>> |
Assertions.assertThat(Collection<? extends E> actual)
Creates a new instance of
. |
static <T> AbstractCollectionAssert<?,Collection<? extends T>,T,ObjectAssert<T>> |
Java6Assertions.assertThat(Collection<? extends T> actual)
Deprecated.
Creates a new instance of
. |
default AbstractListAssert<?,List<? extends Double>,Double,ObjectAssert<Double>> |
StandardSoftAssertionsProvider.assertThat(DoubleStream actual)
Creates a new instance of
from the given DoubleStream. |
default AbstractListAssert<?,List<? extends Integer>,Integer,ObjectAssert<Integer>> |
StandardSoftAssertionsProvider.assertThat(IntStream actual)
Creates a new instance of
from the given IntStream. |
static <T> AbstractIterableAssert<?,Iterable<? extends T>,T,ObjectAssert<T>> |
Java6Assertions.assertThat(Iterable<? extends T> actual)
Deprecated.
Creates a new instance of
. |
static <T> AbstractListAssert<?,List<? extends T>,T,ObjectAssert<T>> |
Java6Assertions.assertThat(List<? extends T> actual)
Deprecated.
Creates a new instance of
. |
default AbstractListAssert<?,List<? extends Long>,Long,ObjectAssert<Long>> |
StandardSoftAssertionsProvider.assertThat(LongStream actual)
Creates a new instance of
from the given LongStream. |
default <ELEMENT> AbstractListAssert<?,List<? extends ELEMENT>,ELEMENT,ObjectAssert<ELEMENT>> |
StandardSoftAssertionsProvider.assertThat(Stream<? extends ELEMENT> actual)
Creates a new instance of
from the given Stream. |
default <E> AbstractCollectionAssert<?,Collection<? extends E>,E,ObjectAssert<E>> |
WithAssertions.assertThatCollection(Collection<? extends E> actual)
Creates a new instance of
. |
static <E> AbstractCollectionAssert<?,Collection<? extends E>,E,ObjectAssert<E>> |
CollectionAssert.assertThatCollection(Collection<? extends E> actual) |
static <E> AbstractCollectionAssert<?,Collection<? extends E>,E,ObjectAssert<E>> |
AssertionsForInterfaceTypes.assertThatCollection(Collection<? extends E> actual)
Creates a new instance of
. |
static <E> AbstractCollectionAssert<?,Collection<? extends E>,E,ObjectAssert<E>> |
Assertions.assertThatCollection(Collection<? extends E> actual)
Creates a new instance of
. |
default <ELEMENT> AbstractListAssert<?,List<? extends ELEMENT>,ELEMENT,ObjectAssert<ELEMENT>> |
StandardSoftAssertionsProvider.assertThatStream(Stream<? extends ELEMENT> actual)
Creates a new instance of
from the given Stream. |
static <E> AbstractCollectionAssert<?,Collection<? extends E>,E,ObjectAssert<E>> |
Assumptions.assumeThat(Collection<? extends E> actual)
Creates a new instance of
assumption. |
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 Double>,Double,ObjectAssert<Double>> |
Assumptions.assumeThat(DoubleStream actual)
Creates a new instance of
assumption from the given DoubleStream. |
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 Integer>,Integer,ObjectAssert<Integer>> |
Assumptions.assumeThat(IntStream actual)
Creates a new instance of
assumption from the given IntStream. |
default <ELEMENT> FactoryBasedNavigableListAssert<ListAssert<ELEMENT>,List<? extends ELEMENT>,ELEMENT,ObjectAssert<ELEMENT>> |
WithAssumptions.assumeThat(List<? extends ELEMENT> list)
Creates a new instance of
assumption. |
static <ELEMENT> FactoryBasedNavigableListAssert<ListAssert<ELEMENT>,List<? extends ELEMENT>,ELEMENT,ObjectAssert<ELEMENT>> |
Assumptions.assumeThat(List<? extends ELEMENT> actual)
Creates a new instance of
assumption. |
default AbstractListAssert<?,List<? extends Long>,Long,ObjectAssert<Long>> |
WithAssumptions.assumeThat(LongStream longStream)
Creates a new instance of
assumption from the given LongStream. |
static AbstractListAssert<?,List<? extends Long>,Long,ObjectAssert<Long>> |
Assumptions.assumeThat(LongStream actual)
Creates a new instance of
assumption from the given LongStream. |
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. |
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. |
static <E> AbstractCollectionAssert<?,Collection<? extends E>,E,ObjectAssert<E>> |
Assumptions.assumeThatCollection(Collection<? extends E> actual)
Creates a new instance of
assumption. |
static <ELEMENT> FactoryBasedNavigableListAssert<ListAssert<ELEMENT>,List<? extends ELEMENT>,ELEMENT,ObjectAssert<ELEMENT>> |
Assumptions.assumeThatList(List<? extends ELEMENT> actual)
Creates a new instance of
assumption. |
static <ELEMENT> AbstractListAssert<?,List<? extends ELEMENT>,ELEMENT,ObjectAssert<ELEMENT>> |
Assumptions.assumeThatStream(Stream<? extends ELEMENT> actual)
Creates a new instance of
assumption from the given Stream. |
static <E> InstanceOfAssertFactory<Collection,AbstractCollectionAssert<?,Collection<? extends E>,E,ObjectAssert<E>>> |
InstanceOfAssertFactories.collection(Class<E> elementType)
|
AbstractListAssert<?,List<?>,Object,ObjectAssert<Object>> |
AbstractObjectAssert.extracting(Function<? super ACTUAL,?>... extractors)
Uses the given
Functions to extract the values 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(Function<? super ELEMENT,?>... extractors)
|
AbstractListAssert<?,List<? extends Tuple>,Tuple,ObjectAssert<Tuple>> |
AbstractIterableAssert.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>> |
AbstractMapAssert.extracting(Object... keys)
Deprecated.
use
AbstractMapAssert.extractingByKeys(Object[]) instead |
AbstractListAssert<?,List<?>,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 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>> |
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.
|
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.
|
<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.
|
<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.
|
<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.
|
<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.
|
AbstractListAssert<?,List<? extends V>,V,ObjectAssert<V>> |
AbstractMapAssert.extractingByKeys(K... keys)
Extract the values of given keys from the map under test into an array, this new array becoming
the object under test.
|
protected AbstractListAssert<?,List<? extends V>,V,ObjectAssert<V>> |
AbstractMapAssert.extractingByKeysForProxy(K[] keys) |
protected AbstractListAssert<?,List<?>,Object,ObjectAssert<Object>> |
AbstractObjectAssert.extractingForProxy(Function<? super ACTUAL,?>[] extractors) |
protected AbstractListAssert<?,List<? extends Tuple>,Tuple,ObjectAssert<Tuple>> |
AbstractObjectArrayAssert.extractingForProxy(Function<? super ELEMENT,?>[] extractors) |
protected AbstractListAssert<?,List<? extends Tuple>,Tuple,ObjectAssert<Tuple>> |
AbstractIterableAssert.extractingForProxy(Function<? super ELEMENT,?>[] 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)
|
protected AbstractListAssert<?,List<? extends Tuple>,Tuple,ObjectAssert<Tuple>> |
AbstractMapAssert.extractingFromEntriesForProxy(Function<? super Map.Entry<K,V>,Object>[] extractors) |
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.
|
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.
|
<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.
|
<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.
|
AbstractListAssert<?,List<? extends Object>,Object,ObjectAssert<Object>> |
AbstractIterableAssert.flatExtracting(Function<? super ELEMENT,?>... extractors)
Extracts multiple values from each
Iterable's element according to the given Functions and
concatenates/flattens them in a list that becomes the instance under test. |
<V> AbstractListAssert<?,List<? extends V>,V,ObjectAssert<V>> |
AbstractIterableAssert.flatExtracting(Function<? super ELEMENT,? extends Collection<V>> extractor)
Extracts Iterable elements values by applying a function and concatenates the result into a list that becomes the instance
under test.
|
<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<?>,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... 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>> |
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.
|
AbstractListAssert<?,List<? extends Object>,Object,ObjectAssert<Object>> |
AbstractIterableAssert.flatExtracting(String fieldOrPropertyName)
Extract Iterable's elements values corresponding to the given property/field name and concatenates them into a list becoming
the new instance under test.
|
<EXCEPTION extends Exception> |
AbstractIterableAssert.flatExtracting(ThrowingExtractor<? super ELEMENT,?,EXCEPTION>... extractors)
Extracts multiple values from each
Iterable's element according to the given ThrowingExtractors
and concatenates/flattens them in a list that becomes the object under test. |
<V,EXCEPTION extends Exception> |
AbstractIterableAssert.flatExtracting(ThrowingExtractor<? super ELEMENT,? extends Collection<V>,EXCEPTION> extractor)
Extracts Iterable elements values by applying a function (which might throw a checked exception) on them and
concatenates/flattens the result into a single list that becomes the instance under test.
|
<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 AbstractListAssert<?,List<? extends Object>,Object,ObjectAssert<Object>> |
AbstractIterableAssert.flatExtractingForProxy(Function<? super ELEMENT,?>[] extractors) |
AbstractListAssert<?,List<? extends Object>,Object,ObjectAssert<Object>> |
AbstractIterableAssert.flatMap(Function<? super ELEMENT,?>... mappers)
Maps multiple values from each
Iterable's element according to the given Functions
and concatenates/flattens them in a list that becomes the instance under test. |
<V> AbstractListAssert<?,List<? extends V>,V,ObjectAssert<V>> |
AbstractIterableAssert.flatMap(Function<? super ELEMENT,? extends Collection<V>> mapper)
Maps the Iterable's elements under test by applying the given
Function and flattens the resulting collections in a
list becoming the object under test. |
<EXCEPTION extends Exception> |
AbstractIterableAssert.flatMap(ThrowingExtractor<? super ELEMENT,?,EXCEPTION>... mappers)
Maps multiple values from each
Iterable's element according to the given ThrowingExtractors and
concatenates/flattens them in a list that becomes the object under test. |
<V,EXCEPTION extends Exception> |
AbstractIterableAssert.flatMap(ThrowingExtractor<? super ELEMENT,? extends Collection<V>,EXCEPTION> mapper)
Maps the Iterable's elements under test by applying a mapping function (which might throw a checked exception) and
concatenates/flattens the result into a single list that becomes the instance under test.
|
static <E> AbstractCollectionAssert<?,Collection<? extends E>,E,ObjectAssert<E>> |
BDDAssumptions.given(Collection<? extends E> actual)
Creates a new assumption's instance for a
Collection value. |
static AbstractListAssert<?,List<? extends Double>,Double,ObjectAssert<Double>> |
BDDAssumptions.given(DoubleStream actual)
Creates a new assumption's instance for a
DoubleStream value. |
static AbstractListAssert<?,List<? extends Integer>,Integer,ObjectAssert<Integer>> |
BDDAssumptions.given(IntStream actual)
Creates a new assumption's instance for an
IntStream value. |
static <ELEMENT> FactoryBasedNavigableListAssert<ListAssert<ELEMENT>,List<? extends ELEMENT>,ELEMENT,ObjectAssert<ELEMENT>> |
BDDAssumptions.given(List<? extends ELEMENT> actual)
Creates a new assumption's instance for a
List value. |
static AbstractListAssert<?,List<? extends Long>,Long,ObjectAssert<Long>> |
BDDAssumptions.given(LongStream actual)
Creates a new assumption's instance for a
LongStream value. |
static <ELEMENT> AbstractListAssert<?,List<? extends ELEMENT>,ELEMENT,ObjectAssert<ELEMENT>> |
BDDAssumptions.given(Stream<? extends ELEMENT> actual)
Creates a new assumption's instance for a
Stream value. |
static <E> AbstractCollectionAssert<?,Collection<? extends E>,E,ObjectAssert<E>> |
BDDAssumptions.givenCollection(Collection<? extends E> actual)
Creates a new assumption's instance of a
value. |
static <ELEMENT> FactoryBasedNavigableListAssert<ListAssert<ELEMENT>,List<? extends ELEMENT>,ELEMENT,ObjectAssert<ELEMENT>> |
BDDAssumptions.givenList(List<? extends ELEMENT> actual)
Creates a new assumption's instance of a
value. |
static <ELEMENT> AbstractListAssert<?,List<? extends ELEMENT>,ELEMENT,ObjectAssert<ELEMENT>> |
BDDAssumptions.givenStream(Stream<? extends ELEMENT> actual)
Creates a new assumption's instance of a
value. |
AbstractListAssert<?,List<? extends Tuple>,Tuple,ObjectAssert<Tuple>> |
AbstractIterableAssert.map(Function<? super ELEMENT,?>... mappers)
|
<V> AbstractListAssert<?,List<? extends V>,V,ObjectAssert<V>> |
AbstractIterableAssert.map(Function<? super ELEMENT,V> mapper)
Maps the Iterable's elements under test by applying a mapping function, the resulting list becomes the instance under test.
|
<V,EXCEPTION extends Exception> |
AbstractIterableAssert.map(ThrowingExtractor<? super ELEMENT,V,EXCEPTION> mapper)
Maps the Iterable's elements by applying the given mapping function (which might throw an exception), the returned list
becomes the instance under test.
|
protected <E> AbstractListAssert<?,List<? extends E>,E,ObjectAssert<E>> |
AbstractObjectArrayAssert.newListAssertInstance(List<? extends E> newActual)
Create a friendly soft or "hard" assertion.
|
protected <E> AbstractListAssert<?,List<? extends E>,E,ObjectAssert<E>> |
AbstractAssert.newListAssertInstance(List<? extends E> newActual)
Create a
AbstractListAssert from the given list. |
AbstractIterableAssert<IterableAssert<T>,Iterable<? extends T>,T,ObjectAssert<T>> |
IterableSizeAssert.returnToIterable() |
static <E> AbstractCollectionAssert<?,Collection<? extends E>,E,ObjectAssert<E>> |
BDDAssertions.then(Collection<? extends E> actual)
Creates a new instance of
. |
static <T> AbstractCollectionAssert<?,Collection<? extends T>,T,ObjectAssert<T>> |
Java6BDDAssertions.then(Collection<? extends T> actual)
Deprecated.
Creates a new instance of
. |
default AbstractListAssert<?,List<? extends Double>,Double,ObjectAssert<Double>> |
BDDSoftAssertionsProvider.then(DoubleStream actual)
Creates a new instance of
from the given DoubleStream. |
default AbstractListAssert<?,List<? extends Integer>,Integer,ObjectAssert<Integer>> |
BDDSoftAssertionsProvider.then(IntStream actual)
Creates a new instance of
from the given IntStream. |
static <T> AbstractIterableAssert<?,Iterable<? extends T>,T,ObjectAssert<T>> |
Java6BDDAssertions.then(Iterable<? extends T> actual)
Deprecated.
Creates a new instance of
. |
static <T> AbstractListAssert<?,List<? extends T>,T,ObjectAssert<T>> |
Java6BDDAssertions.then(List<? extends T> actual)
Deprecated.
Creates a new instance of
. |
default AbstractListAssert<?,List<? extends Long>,Long,ObjectAssert<Long>> |
BDDSoftAssertionsProvider.then(LongStream actual)
Creates a new instance of
from the given LongStream. |
default <ELEMENT> AbstractListAssert<?,List<? extends ELEMENT>,ELEMENT,ObjectAssert<ELEMENT>> |
BDDSoftAssertionsProvider.then(Stream<? extends ELEMENT> actual)
Creates a new instance of
from the given Stream. |
default <E> AbstractCollectionAssert<?,Collection<? extends E>,E,ObjectAssert<E>> |
Java6BDDSoftAssertionsProvider.thenCollection(Collection<? extends E> actual)
Creates a new instance of
. |
static <E> AbstractCollectionAssert<?,Collection<? extends E>,E,ObjectAssert<E>> |
BDDAssertions.thenCollection(Collection<? extends E> actual)
Creates a new instance of
. |
static <T> InstanceOfAssertFactory<T,ObjectAssert<T>> |
InstanceOfAssertFactories.type(Class<T> type)
InstanceOfAssertFactory for an object of a specific type. |
| Constructor and Description |
|---|
IterableSizeAssert(AbstractIterableAssert<IterableAssert<T>,Iterable<? extends T>,T,ObjectAssert<T>> source,
Integer i) |
Copyright © 2025. All rights reserved.