Upgrade to AssertJ 3.25.0
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -19,6 +19,7 @@ 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;
|
||||
|
||||
@@ -63,7 +64,7 @@ class RecordedInvocationTests {
|
||||
|
||||
@Test
|
||||
void staticInvocationShouldThrowWhenGetInstance() {
|
||||
assertThatThrownBy(staticInvocation::getInstance).isInstanceOf(IllegalStateException.class);
|
||||
assertThatThrownBy((ThrowingCallableWithValue) staticInvocation::getInstance).isInstanceOf(IllegalStateException.class);
|
||||
assertThatThrownBy(staticInvocation::getInstanceTypeReference).isInstanceOf(IllegalStateException.class);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user