File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
common/src/main/scala/org/mockito/stubbing Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
1
package org .mockito
2
2
package stubbing
3
3
import java .lang .reflect .Modifier .isFinal
4
-
5
4
import org .mockito .Mockito .{ mock , withSettings }
6
- import org .mockito .internal .debugging .LocationImpl
5
+ import org .mockito .internal .debugging .LocationFactory
7
6
import org .mockito .internal .exceptions .Reporter .smartNullPointerException
8
7
import org .mockito .internal .stubbing .defaultanswers .ReturnsMoreEmptyValues
9
8
import org .mockito .internal .util .ObjectMethodsGuru .isToStringMethod
@@ -22,7 +21,7 @@ object ReturnsSmartNulls extends DefaultAnswer {
22
21
None
23
22
}
24
23
25
- case class ThrowsSmartNullPointer (unstubbedInvocation : InvocationOnMock , location : Location = new LocationImpl ) extends Answer [AnyRef ] {
24
+ case class ThrowsSmartNullPointer (unstubbedInvocation : InvocationOnMock , location : Location = LocationFactory .create() ) extends Answer [AnyRef ] {
26
25
override def answer (invocation : InvocationOnMock ): AnyRef =
27
26
if (isToStringMethod(invocation.getMethod))
28
27
s """ SmartNull returned by this unstubbed method call on a mock:
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ object Dependencies {
6
6
val scalatestVersion = " 3.2.13"
7
7
8
8
val commonLibraries = Seq (
9
- " org.mockito" % " mockito-core" % " 4.6 .1" ,
9
+ " org.mockito" % " mockito-core" % " 4.8 .1" ,
10
10
" org.scalactic" %% " scalactic" % scalatestVersion,
11
11
" ru.vyarus" % " generics-resolver" % " 3.0.3"
12
12
)
You can’t perform that action at this time.
0 commit comments