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

org.scalatestplus.junit5.VersionSpecificAssertionsForJUnit5.scala Maven / Gradle / Ivy

The newest version!
package org.scalatestplus.junit5

import org.scalactic.{Prettifier, source}
import org.scalatest.{Assertion, Assertions}

trait VersionSpecificAssertionsForJUnit extends Assertions {
  import scala.language.experimental.macros

  override def assert(condition: Boolean)(implicit prettifier: Prettifier, pos: source.Position): Assertion = macro AssertionsForJUnitMacro.assert

  override def assert(condition: Boolean, clue: Any)(implicit prettifier: Prettifier, pos: source.Position): Assertion = macro AssertionsForJUnitMacro.assertWithClue

  override def assume(condition: Boolean)(implicit prettifier: Prettifier, pos: source.Position): Assertion = macro AssertionsForJUnitMacro.assume

  override def assume(condition: Boolean, clue: Any)(implicit prettifier: Prettifier, pos: source.Position): Assertion = macro AssertionsForJUnitMacro.assumeWithClue
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy