All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.specs2.mock.mockito.ThreadSafeMockingProgress2.scala Maven / Gradle / Ivy

There is a newer version: 3.10.0
Show newest version
package org.mockito.internal.progress

import scala.collection.JavaConversions._
import org.hamcrest.Matcher
import org.mockito.internal.matchers.LocalizedMatcher

/**
 * provide access to the locally stored matchers created by the `argThat` method when evaluating byname arguments
 */
object ThreadSafeMockingProgress2 extends ThreadSafeMockingProgress {
  def pullLocalizedMatchers = ThreadSafeMockingProgress.threadSafely().getArgumentMatcherStorage.pullLocalizedMatchers()

  def reportMatchers(matchers: java.util.List[Matcher[_]]) = {
    matchers.foreach(m => ThreadSafeMockingProgress.threadSafely().getArgumentMatcherStorage.reportMatcher(m))
  }
}






© 2015 - 2024 Weber Informatics LLC | Privacy Policy