MVN

org.necula.bond : bond

Maven & Gradle

Feb 05, 2016
6 stars

Bond Testing Library · Bond is a small library that can be used to spy values and mock functions during tests. Spying is a replacement for writing the assertEquals in your test, which are tedious to write and even more tedious to update whem your test setup or code inevitably changes. With Bond, you separate what is being verified, e.g., the variable named output, from what value it should have. This way you can quickly spy several variables, even have structured values such as lists or dictionaries, and these values are saved into an observation log that is saved for future reference. If the test observations are different you have the option to interact with a console or visual tool to see what has changed, and whether the reference set of observations need to be updated.

<dependency>
    <groupId>org.necula.bond</groupId>
    <artifactId>bond</artifactId>
    <version>0.2.0</version>
</dependency>
Copy
pom.xml
Table Of Contents

Latest Version

Choose a version of org.necula.bond : bond to add to Maven or Gradle - Latest Versions:

  • Latest Stable: 0.2.0

All Versions

Choose a version of org.necula.bond : bond to add to Maven or Gradle - All Versions:

Version Vulnerabilities Updated
0.2.x
bond-0.2.0
0.1.x
bond-0.1.1
bond-0.1.0

How to add a dependency to Maven

Add the following org.necula.bond : bond maven dependency to the pom.xml file with your favorite IDE (IntelliJ / Eclipse / Netbeans):

<dependency>
    <groupId>org.necula.bond</groupId>
    <artifactId>bond</artifactId>
    <version>0.2.0</version>
</dependency>

How to add a dependency to Gradle

Gradle Groovy DSL: Add the following org.necula.bond : bond gradle dependency to your build.gradle file:

implementation 'org.necula.bond:bond:0.2.0'

Gradle Kotlin DSL: Add the following org.necula.bond : bond gradle kotlin dependency to your build.gradle.kts file:

implementation("org.necula.bond:bond:0.2.0")

How to add a dependency to SBT Scala

SBT Scala: Add the following org.necula.bond : bond sbt scala dependency to your build.sbt file:

libraryDependencies += "org.necula.bond" % "bond" % "0.2.0"