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

org.mockito.matchers.NullMatchers.scala Maven / Gradle / Ivy

package org.mockito.matchers

import org.mockito.{ ArgumentMatchers => JavaMatchers }

private[mockito] trait NullMatchers {

  /**
   * Delegates to ArgumentMatchers.isNull(), it's only here so we expose all the `ArgumentMatchers` on a single place, but marked as @deprecated as you shouldn't be
   * testing for nulls on Scala
   */
  @deprecated(message = "Using nulls in Scala? you naughty, naughty developer...", since = "0.0.0")
  def isNull[T]: T = JavaMatchers.isNull[T]

  /**
   * Delegates to ArgumentMatchers.isNotNull(), it's only here so we expose all the `ArgumentMatchers` on a single place, but marked as @deprecated as you shouldn't be
   * testing for nulls on Scala
   */
  @deprecated(message = "Using nulls in Scala? you naughty, naughty developer...", since = "0.0.0")
  def isNotNull[T]: T = JavaMatchers.isNotNull[T]
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy