Upgrade to AssertJ 3.25.1, use AssertJ BOM

Closes gh-31945
This commit is contained in:
Stefano Cordio
2024-01-04 09:25:31 +01:00
committed by Sam Brannen
parent 19a87e968e
commit be9ee9112c
3 changed files with 3 additions and 6 deletions

View File

@@ -19,7 +19,6 @@ package org.springframework.aot.agent;
import java.lang.reflect.Method;
import org.assertj.core.api.ThrowableAssert.ThrowingCallableWithValue;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
@@ -64,7 +63,7 @@ class RecordedInvocationTests {
@Test
void staticInvocationShouldThrowWhenGetInstance() {
assertThatThrownBy((ThrowingCallableWithValue) staticInvocation::getInstance).isInstanceOf(IllegalStateException.class);
assertThatThrownBy(staticInvocation::getInstance).isInstanceOf(IllegalStateException.class);
assertThatThrownBy(staticInvocation::getInstanceTypeReference).isInstanceOf(IllegalStateException.class);
}