You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error instantiating bean of type x.x.x
Mockito cannot mock this class: x.x.x
Java : 11
JVM vendor name : JetBrains s.r.o
JVM vendor version : 11.0.4+10-b304.77
JVM name : OpenJDK 64-Bit Server VM
JVM version : 11.0.4+10-b304.77
JVM info : mixed mode
OS name : Linux
OS version : 5.3.0-53-generic
Refers to instances of @MockBean
@MockBean(X.class)
X x(){
return mock(X.class);
}
Works with Java8
openjdk version "1.8.0_252"
OpenJDK Runtime Environment (build 1.8.0_252-8u252-b09-1~18.04-b09)
OpenJDK 64-Bit Server VM (build 25.252-b09, mixed mode)
Suspect related to mockito-core version being < 2.22 after a little googling.
Imported testCompile group: 'org.mockito', name: 'mockito-core', version: '2.22.0
Didn't resolve the issue
The text was updated successfully, but these errors were encountered:
gradle.build
Refers to instances of
@MockBean
Works with Java8
Suspect related to mockito-core version being < 2.22 after a little googling.
Imported
testCompile group: 'org.mockito', name: 'mockito-core', version: '2.22.0
Didn't resolve the issue
The text was updated successfully, but these errors were encountered: