junit-mockito
Installation
SKILL.md
JUnit + Mockito for Java Android
Instructions
Write unit tests as the first consumer of your architecture. If testing is painful, the architecture is wrong — fix the design before papering over it with fakes.
1. Dependencies
dependencies {
testImplementation 'junit:junit:4.13.2'
testImplementation 'org.mockito:mockito-core:5.12.0'
testImplementation 'org.mockito:mockito-inline:5.2.0' // final classes, static methods
testImplementation 'androidx.arch.core:core-testing:2.2.0' // InstantTaskExecutorRule
testImplementation 'org.junit.jupiter:junit-jupiter:5.10.2' // optional, pure Java modules
testImplementation 'com.google.truth:truth:1.4.4' // readable assertions
}