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: 4.10.6
Show newest version
package org.mockito.internal.progress

import scala.collection.JavaConversions._
import org.hamcrest.Matcher

/**
 * 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 - 2025 Weber Informatics LLC | Privacy Policy