Skip to content

Commit

Permalink
Expose expected InstanceOfAssertFactory type and raw type
Browse files Browse the repository at this point in the history
  • Loading branch information
scordio committed Feb 25, 2024
1 parent d1d9bc0 commit ff01677
Show file tree
Hide file tree
Showing 4 changed files with 246 additions and 151 deletions.
Expand Up @@ -478,7 +478,7 @@ public SELF satisfies(Condition<? super ACTUAL> condition) {
@CheckReturnValue
public <ASSERT extends AbstractAssert<?, ?>> ASSERT asInstanceOf(InstanceOfAssertFactory<?, ASSERT> instanceOfAssertFactory) {
requireNonNull(instanceOfAssertFactory, shouldNotBeNull("instanceOfAssertFactory")::create);
objects.assertIsInstanceOf(info, actual, instanceOfAssertFactory.getType());
objects.assertIsInstanceOf(info, actual, instanceOfAssertFactory.getRawClass());
return (ASSERT) instanceOfAssertFactory.createAssert(actual).withAssertionState(myself);
}

Expand Down

0 comments on commit ff01677

Please sign in to comment.