Upgrade to AssertJ 3.25.1, use AssertJ BOM
Closes gh-31945
This commit is contained in:
committed by
Sam Brannen
parent
19a87e968e
commit
be9ee9112c
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user