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

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

The newest version!
package org.specs2
package mock
package mockito

trait NumberOfTimes {
  /** 
   * This implicit definition allows to declare a number of times
   * 3.times
   */
  implicit def integerToRange(n: Int): RangeInt = new RangeInt(n)
  case class RangeInt(n: Int) { 
    def times = this 
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy