March 2018
Intermediate to advanced
324 pages
8h 30m
English
In order to explore some of the goodies of Java Functional Programming in a test-driven fashion, we are going to set up a Java project with JUnit and AssertJ frameworks. The last one includes quite a few convenient methods for Optional.
Let's start a new Gradle project. This is how build.gradle looks:
apply plugin: 'java'sourceCompatibility = 1.8targetCompatibility = 1.8repositories { mavenCentral()}dependencies { testCompile group: 'junit', name: 'junit', version: '4.12' testCompile group: 'org.assertj', name: 'assertj-core', version: '3.9.0'}
In the following sections, we are going to explore some of the utilities and classes included in Java 8 that enhance the experience of programming. Most of them are not ...
Read now
Unlock full access