Creating a strong foundation for a new project using Spring Boot – Part 4

Contents This post is divided into four parts. Getting Ready Unit testing Integration testing Launching the app Launching the app At this point, our application is complete. You can launch the app by executing the following command. [code language=”plain”] gradlew bootRun [/code] Make sure you have modified your application.properties according to your DB and that your […]

Continue reading


Creating a strong foundation for a new project using Spring Boot – Part 3

Contents This post is divided into four parts. Getting Ready Unit testing Integration testing Launching the app Integration tests In integration tests, multiple layers communicate with each other and we test multiple layers of the system in a given test. It’s a good idea to keep your integration tests separate from unit tests. You will […]

Continue reading


Creating a strong foundation for a new project using Spring Boot – Part 2

Contents This post is divided into four parts. Getting Ready Unit testing Integration testing Launching the app Unit tests The “spring-boot-starter-test” is automatically added when you create a new project. If you are familiar with Spring test, you might be aware of @SpringBootTest annotation. But that’s an overkill for a unit test. @SpringBootTest has the power to start […]

Continue reading


Creating a strong foundation for a new project using Spring Boot – Part 1

Contents This post is divided into four parts. Getting Ready Unit testing Integration testing Launching the app Creating a strong foundation for any new project is critical for timely delivery as well as maintainability. Frameworks like Spring Boot and tools like Gradle are meant for rapid development. However, if not utilized correctly, these can become […]

Continue reading


Moving on to Assertj assertions – beginner examples

Assertj examples This post describes the use of a relatively new but a fluent assertion library, Assertj. 1. Introduction Assertj provides simple yet effective way to assert your tests. It provides a powerful mechanism to make your assertions compact and readable. 2. Dependencies Add the following dependency to your project. Gradle: [code language=”plain”] testCompile ‘org.assertj:assertj-core:3.5.2’ […]

Continue reading