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

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

There is a newer version: 3.7
Show newest version
package org.mockito.internal.matchers

/*
 * Copyright (c) 2007 Mockito contributors
 * This program is made available under the terms of the MIT License.
 */
/**
 * Ad-hoc implementation of the Equals matcher overriding the matching for Function1 values.
 * It is used to match implicit conversions transparently
 */
case class EqualsFunction1(wanted: scala.Any) extends Equals(wanted) {

  override def matches(actual: scala.Any) = {
    actual.isInstanceOf[Function1[_,_]]
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy