mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-05-02 19:30:23 +01:00
Upgrade to Mockito 5.3.0
Closes gh-34998
This commit is contained in:
@@ -955,7 +955,7 @@ bom {
|
||||
]
|
||||
}
|
||||
}
|
||||
library("Mockito", "4.11.0") {
|
||||
library("Mockito", "5.3.0") {
|
||||
group("org.mockito") {
|
||||
imports = [
|
||||
"mockito-bom"
|
||||
|
||||
+1
-1
@@ -103,7 +103,7 @@ class DefaultRestartInitializerTests {
|
||||
DefaultRestartInitializer initializer = new DefaultRestartInitializer();
|
||||
ClassLoader classLoader = new MockAppClassLoader(getClass().getClassLoader());
|
||||
Thread thread = mock(Thread.class);
|
||||
thread.setName("main");
|
||||
given(thread.getName()).willReturn("main");
|
||||
StackTraceElement element = new StackTraceElement(s, "someMethod", "someFile", 123);
|
||||
given(thread.getStackTrace()).willReturn(new StackTraceElement[] { element });
|
||||
given(thread.getContextClassLoader()).willReturn(classLoader);
|
||||
|
||||
Reference in New Issue
Block a user