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 11package org .mockito
22package stubbing
33import java .lang .reflect .Modifier .isFinal
4-
54import org .mockito .Mockito .{ mock , withSettings }
6- import org .mockito .internal .debugging .LocationImpl
5+ import org .mockito .internal .debugging .LocationFactory
76import org .mockito .internal .exceptions .Reporter .smartNullPointerException
87import org .mockito .internal .stubbing .defaultanswers .ReturnsMoreEmptyValues
98import org .mockito .internal .util .ObjectMethodsGuru .isToStringMethod
@@ -22,7 +21,7 @@ object ReturnsSmartNulls extends DefaultAnswer {
2221 None
2322 }
2423
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 ] {
2625 override def answer (invocation : InvocationOnMock ): AnyRef =
2726 if (isToStringMethod(invocation.getMethod))
2827 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 {
66 val scalatestVersion = " 3.2.13"
77
88 val commonLibraries = Seq (
9- " org.mockito" % " mockito-core" % " 4.6 .1" ,
9+ " org.mockito" % " mockito-core" % " 4.8 .1" ,
1010 " org.scalactic" %% " scalactic" % scalatestVersion,
1111 " ru.vyarus" % " generics-resolver" % " 3.0.3"
1212 )
You can’t perform that action at this time.
0 commit comments