Skip to content

Installing

Andrei Ciobanu edited this page Jan 10, 2019 · 32 revisions

Important Note: The library the documentation has moved to www.mockneat.com. The information found on this wiki is quite outdated. Please check the new site.


From sources:

  1. Clone it from github:
git clone https://github.com/nomemory/mockneat.git
  1. Build the "fat jar" - the jar that contains MockNeat and all its dependencies:
gradle shadowJar
  1. Check the ./build/libs/ for .jar file: mockneat-<version>-all.jar.

  2. Add the .jar to the classpath.

With gradle

To check the latest version please check the library's jcenter page.

Add jcenter() as a repository in your gradle.build file:

repositories {
    // something else
    jcenter()
}

Add the following line a dependency:

dependencies {
      // something else
     compile 'net.andreinc.mockneat:mockneat:0.3.0'
}

With Maven

To check the latest version please check the library's jcenter page.

pom.xml dependency:

<repositories>
    <repository>
        <id>jcenter</id>
        <url>https://jcenter.bintray.com/</url>
    </repository>
</repositories>

<dependencies>
    <dependency>
        <groupId>net.andreinc.mockneat</groupId>
        <artifactId>mockneat</artifactId>
        <version>0.3.0</version>
    </dependency>
</dependencies>