Skip to content

Commit

Permalink
Extends navigable assertions to Iterable.
Browse files Browse the repository at this point in the history
Allow to define the navigable assertions element assert with a class instead of an AssertFactory
Add more tests.
  • Loading branch information
joel-costigliola committed May 17, 2016
1 parent a3b0f71 commit 4d21a2d
Show file tree
Hide file tree
Showing 38 changed files with 1,168 additions and 431 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/assertj/core/api/AbstractAssert.java
Expand Up @@ -360,7 +360,7 @@ public S isNotOfAnyClassIn(Class<?>... types) {
/** {@inheritDoc} */
@SuppressWarnings("unchecked")
@Override
public AbstractListAssert<?, ?, Object> asList() {
public AbstractListAssert<?, List<? extends Object>, Object, ObjectAssert<Object>> asList() {
objects.assertIsInstanceOf(info, actual, List.class);
return Assertions.assertThat((List<Object>) actual);
}
Expand Down

0 comments on commit 4d21a2d

Please sign in to comment.