O'Reilly logo

Test-Driven Java Development - Second Edition by Viktor Farcic, Alex Garcia

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Exploring the codebase

As you start browsing the project, you realise that the application is not very complex. In fact, the project contains roughly a dozen Java classes and, as you start opening and looking at the files, you notice that none of them is longer than one hundred lines. That is pretty good, the codebase is small so you will be able to develop new features in no time.

Provided that this is a Gradle project, you quickly open the build.gradle file to acknowledge the frameworks and libraries being used within the project:

apply plugin: 'java'apply plugin: 'org.springframework.boot'sourceCompatibility = 1.8targetCompatibility = 1.8bootRepackage.executable = truerepositories {  mavenLocal()  mavenCentral()}dependencies { compile 'org.springframework.boot:spring-boot-starter-actuator' ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required