Skip to content

Commit

Permalink
Updates mockito-core 4.6.1 -> 4.8.1 (#474)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiro Kugiya committed Mar 20, 2023
1 parent 609201b commit 080b33d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
@@ -1,9 +1,8 @@
package org.mockito
package stubbing
import java.lang.reflect.Modifier.isFinal

import org.mockito.Mockito.{ mock, withSettings }
import org.mockito.internal.debugging.LocationImpl
import org.mockito.internal.debugging.LocationFactory
import org.mockito.internal.exceptions.Reporter.smartNullPointerException
import org.mockito.internal.stubbing.defaultanswers.ReturnsMoreEmptyValues
import org.mockito.internal.util.ObjectMethodsGuru.isToStringMethod
Expand All @@ -22,7 +21,7 @@ object ReturnsSmartNulls extends DefaultAnswer {
None
}

case class ThrowsSmartNullPointer(unstubbedInvocation: InvocationOnMock, location: Location = new LocationImpl) extends Answer[AnyRef] {
case class ThrowsSmartNullPointer(unstubbedInvocation: InvocationOnMock, location: Location = LocationFactory.create()) extends Answer[AnyRef] {
override def answer(invocation: InvocationOnMock): AnyRef =
if (isToStringMethod(invocation.getMethod))
s"""SmartNull returned by this unstubbed method call on a mock:
Expand Down
2 changes: 1 addition & 1 deletion project/Dependencies.scala
Expand Up @@ -6,7 +6,7 @@ object Dependencies {
val scalatestVersion = "3.2.13"

val commonLibraries = Seq(
"org.mockito" % "mockito-core" % "4.6.1",
"org.mockito" % "mockito-core" % "4.8.1",
"org.scalactic" %% "scalactic" % scalatestVersion,
"ru.vyarus" % "generics-resolver" % "3.0.3"
)
Expand Down

0 comments on commit 080b33d

Please sign in to comment.