Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.juanmendez:Mocking-Realm:v0.11'
}
dependencies {
implementation("com.github.juanmendez:Mocking-Realm:v0.11")
}
<dependency>
<groupId>com.github.juanmendez</groupId>
<artifactId>Mocking-Realm</artifactId>
<version>v0.11</version>
</dependency>
libraryDependencies += "com.github.juanmendez" % "Mocking-Realm" % "v0.11"
:dependencies [[com.github.juanmendez/Mocking-Realm "v0.11"]]
-- status: tuning prior to making it work with latest Realm
This is ongoing work to unit test Realm as much as possible hammering with Mockito, and PowerMockito.
Gradle:
repositories {
...
maven { url 'https://jitpack.io' }
}
dependencies {
...
testImplementation 'com.github.juanmendez:realm-tester:master-SNAPSHOT'
}
Wiki has a basic instructions how to import and use this library
What has been done so far
#realm-tester
and let you know when that occurs. The same rule will apply for features which I cover partially