Learn how to cause a Maven build to fail when the JaCoCo code coverage falls below a given threshold.
Baeldung Author
Uzma Khan
I have a Master's degree in Computer Science and have been working as a backend developer for over 5 years. I have worked on various e-commerce projects during this time. I am currently working in the cyber security domain using Java and Spring Boot. I am an advocate for TDD and clean coding practices. During my spare time, I like to travel, read and listen to music.
Here's what I've written (so far):
Baeldung on Java
- All
- Testing (3)
- Spring Boot (3)
- Maven (3)
- Persistence (2)
- Data (2)
- Spring Web (1)
- Spring Persistence (1)
- Spring Data (1)
- Security (1)
- Reactive (1)
- REST (1)
- Java Collections (1)
- Gradle (1)
Consuming Page Entity Response From RestTemplate
Filed under REST
Discover how to use RestTemplate to invoke a RESTful endpoint and read the response of type Page.
Need for Default Constructor in JPA Entities
Filed under Persistence
Learn about the JPA requirement for a default no-argument constructor in an Entity class.
Correct Use of flush() in JPA
Filed under Persistence
Learn about the Spring JPA’s flush() method .
Converting List to Page Using Spring Data JPA
Filed under Spring Data
Learn how to convert a List into a Page using Spring Data JPA.
Cancel an Ongoing Flux in Spring WebFlux
Filed under Reactive, Spring Web
A quick and practical guide to cancelling Flux in Spring Webflux.
Unidirectional One-to-Many and Cascading Delete in JPA
Filed under Spring Persistence
Learn about the Cascading deletion, focusing on unidirectional One-to-Many relationships.
Load Testing Rest Endpoint Using Gatling
Filed under Testing
Learn how to use Gatling to do performance testing on any Rest endpoint.
Maven Reactor
Filed under Maven
Learn about the benefits of using Maven Reactor in the Apache Maven ecosystem to build multi-module complex projects.
Message Delivery Semantics in Streaming Platforms
Filed under Data
Learn the differences between the three delivery semantics used in streaming platforms and how to obtain these guarantees in Apache Kafka.
Sort a List Alphabetically in Java
Filed under Java Collections
Learn how to sort elements in Java collections.
Spark DataFrame
Filed under Data
Spark’s DataFrame component is an essential part of its API. It represents data in a table like way so we can perform operations on it. We look at the Java Dataset type, which is used to interact with DataFrames and we see how to read data from a JSON file and write it to a database.
Kafka Streams With Spring Boot
Filed under Spring Boot
Learn how to build a simple event-driven Spring Boot application to process messages with Kafka Streams.
Configuring Kafka SSL Using Spring Boot
Filed under Security, Spring Boot
In this tutorial, we’ll cover the basic setup for connecting a Spring Boot client to an Apache Kafka broker using SSL authentication.
Difference Between Maven Surefire and Failsafe Plugins
Compare Surefire and Failsafe plugins for separating and running different types of tests.
Exclusions from Jacoco Report
Learn how to exclude files from test coverage reports in Jacoco
Multipart Request Handling in Spring
Filed under Spring Boot
Learn how to send multipart HTTP requests using Spring Boot.