javacodegeeks.com

Espresso Idling Resource for RecyclerView Data Changes

I was having a problem with using Android Espresso to test a RecyclerView when it’s data was updated.This is for an Android app where a list of contacts is displayed by a RecyclerView. There is a SearchView in the action bar that can filter the contacts list to display matching contact names.The Espresso test ran like this:Start the activity.Espresso verifies that the full list of contacts is...

javacodegeeks.com

Gradle Dependencies for Java, use compile or implementation?

While I was explaining to a colleague about using Gradle for Java projects (he was moving away from Maven), we came across various code samples. Some of the examples were using the compile configuration for dependencies, while others were using implements and api.dependencies { compile 'commons-httpclient:commons-httpclient:3.1' compile 'org.apache.commons:commons-lang3:3.5' }dependencies { api...

javacodegeeks.com

JRebel for a Gradle Spring Boot App

There is some documentation on how to add JRebel to a Spring Boot app that uses Gradle as the build tool. It is basic but works fine.All you have to do is to add a few lines to build.gradle:if (project.hasProperty('rebelAgent')) { bootRun.jvmArgs += rebelAgent }Then set the property in gradle.properties:rebelAgent=-agentpath:[path/to/JRebel library]However there are several ways to improve on...