Configuring Retrolambda

First, let's get Retrolambda set up. We will also leverage a quick unit test to see whether it works correctly.

Open the ExampleUnitTest.java file that was created with the project template under app/java/com/packtpub/rxjavaapp, as shown in the following screenshot:

Remove the sample unit test method inside it and declare a new one called lambdaTest() as follows:

Note that it throws a compiler error because we are not using Java 8 to support lambdas. If you navigate to the lambda expression, you will see the error message ...

Get Learning RxJava - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.