Uses of Class
org.assertj.core.api.ObjectAssert
Packages that use ObjectAssert
-
Uses of ObjectAssert in org.assertj.core.api
Fields in org.assertj.core.api with type parameters of type ObjectAssertModifier and TypeFieldDescriptionprivate AbstractIterableAssert<IterableAssert<T>,Iterable<? extends T>, T, ObjectAssert<T>> IterableSizeAssert.sourceMethods in org.assertj.core.api that return ObjectAssertModifier and TypeMethodDescription<T> ObjectAssert<T>Java6AbstractStandardSoftAssertions.assertThat(T actual) Creates a new instance of.ObjectAssertObjectAssertFactory.createAssert(T t) <T> ObjectAssert<T>Java6AbstractBDDSoftAssertions.then(T actual) Creates a new instance of.ObjectAssertMethods in org.assertj.core.api that return types with arguments of type ObjectAssertModifier and TypeMethodDescriptionAbstractAssert.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.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.static <ELEMENT,STREAM extends BaseStream<ELEMENT, STREAM>>
AbstractListAssert<?,List<? extends ELEMENT>, ELEMENT, ObjectAssert<ELEMENT>> Assertions.assertThat(BaseStream<? extends ELEMENT, STREAM> actual) Creates a new instance offrom the givenListAssertBaseStream.static <T> AbstractIterableAssert<?,Iterable<? extends T>, T, ObjectAssert<T>> Java6Assertions.assertThat(Iterable<? extends T> actual) Creates a new instance of.IterableAssertstatic <T> AbstractIterableAssert<?,Iterable<? extends T>, T, ObjectAssert<T>> Java6Assertions.assertThat(Iterator<? extends T> actual) Creates a new instance of.IterableAssertstatic <T> AbstractListAssert<?,List<? extends T>, T, ObjectAssert<T>> Java6Assertions.assertThat(List<? extends T> actual) Creates a new instance of.ListAssertdefault <ELEMENT,STREAM extends BaseStream<ELEMENT, STREAM>>
AbstractListAssert<?,? extends List<? extends ELEMENT>, ELEMENT, ObjectAssert<ELEMENT>> WithAssertions.assertThat(BaseStream<? extends ELEMENT, STREAM> actual) Delegate call toAssertions.assertThat(List)private <V> AbstractListAssert<?,List<? extends V>, V, ObjectAssert<V>> AbstractIterableAssert.doFlatExtracting(Extractor<? super ELEMENT, ? extends Collection<V>> extractor) 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 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.<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> AbstractListAssert<?,List<? extends V>, V, ObjectAssert<V>> AbstractIterableAssert.extracting(Extractor<? super ELEMENT, V> extractor) Extract the values from Iterable's elements under test by applying an extracting function on them.<V,EXCEPTION extends Exception>
AbstractListAssert<?,List<? extends V>, V, ObjectAssert<V>> 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 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>> 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 ELEMENT>, ELEMENT, ObjectAssert<ELEMENT>> AbstractIterableAssert.filteredOn(String propertyOrFieldName, Object expectedValue) Filter the iterable under test keeping only elements having a property or field equal toexpectedValue, the property/field is specified bypropertyOrFieldNameparameter.AbstractListAssert<?,List<? extends ELEMENT>, ELEMENT, ObjectAssert<ELEMENT>> AbstractIterableAssert.filteredOn(String propertyOrFieldName, FilterOperator<?> filterOperator) Filter the iterable under test keeping only elements having a property or field matching the filter expressed with theFilterOperator, the property/field is specified bypropertyOrFieldNameparameter.AbstractListAssert<?,List<? extends ELEMENT>, ELEMENT, ObjectAssert<ELEMENT>> AbstractIterableAssert.filteredOn(Predicate<? super ELEMENT> predicate) Filter the iterable under test keeping only elements matching the givenPredicate.AbstractListAssert<?,List<? extends ELEMENT>, ELEMENT, ObjectAssert<ELEMENT>> AbstractIterableAssert.filteredOn(Condition<? super ELEMENT> condition) Filter the iterable under test keeping only elements matching the givenCondition.AbstractListAssert<?,List<? extends ELEMENT>, ELEMENT, ObjectAssert<ELEMENT>> AbstractIterableAssert.filteredOnNull(String propertyOrFieldName) Filter the iterable under test keeping only elements whose property or field specified bypropertyOrFieldNameis null.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>> AbstractIterableAssert.flatExtracting(String... fieldOrPropertyNames) Extract the given property/field values from eachIterable's element and flatten the extracted values in a list that is used as the new object under test.<V> AbstractListAssert<?,List<? extends V>, V, ObjectAssert<V>> AbstractIterableAssert.flatExtracting(Extractor<? 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,EXCEPTION extends Exception>
AbstractListAssert<?,List<? extends V>, V, ObjectAssert<V>> 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.protected <E> AbstractListAssert<?,List<? extends E>, E, ObjectAssert<E>> AbstractIterableAssert.newListAssertInstance(List<? extends E> newActual) Create a friendly soft or "hard" assertion.protected <ELEMENT2> AbstractListAssert<?,List<? extends ELEMENT2>, ELEMENT2, ObjectAssert<ELEMENT2>> SoftAssertionIterableAssert.newListAssertInstance(List<? extends ELEMENT2> newActual) protected <ELEMENT2> AbstractListAssert<?,List<? extends ELEMENT2>, ELEMENT2, ObjectAssert<ELEMENT2>> SoftAssertionListAssert.newListAssertInstance(List<? extends ELEMENT2> newActual) AbstractIterableAssert<IterableAssert<T>,Iterable<? extends T>, T, ObjectAssert<T>> IterableSizeAssert.returnToIterable()static <ELEMENT,STREAM extends BaseStream<ELEMENT, STREAM>>
AbstractListAssert<?,List<? extends ELEMENT>, ELEMENT, ObjectAssert<ELEMENT>> BDDAssertions.then(BaseStream<? extends ELEMENT, STREAM> actual) Creates a new instance offrom the givenListAssertBaseStream.static <T> AbstractIterableAssert<?,Iterable<? extends T>, T, ObjectAssert<T>> Creates a new instance of.IterableAssertstatic <T> AbstractIterableAssert<?,Iterable<? extends T>, T, ObjectAssert<T>> Creates a new instance of.IterableAssertstatic <T> AbstractListAssert<?,List<? extends T>, T, ObjectAssert<T>> Creates a new instance of.ListAssertConstructor parameters in org.assertj.core.api with type arguments of type ObjectAssertModifierConstructorDescriptionIterableSizeAssert(AbstractIterableAssert<IterableAssert<T>, Iterable<? extends T>, T, ObjectAssert<T>> source, Integer i)