-
-
Notifications
You must be signed in to change notification settings - Fork 47
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.
- Clone it from github:
git clone https://github.com/nomemory/mockneat.git
- Build the "fat jar" - the jar that contains MockNeat and all its dependencies:
gradle shadowJar
-
Check the
./build/libs/
for.jar
file:mockneat-<version>-all.jar
. -
Add the
.jar
to the classpath.
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'
}
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>
Using the library:
Real World Examples: