A quick tutorial on the differences between code coverage and test coverage.
Also find me here:
Baeldung Author
Ana Peterlić
Ana is a freelance web developer with over six years of experience working with Java, Spring, and other related technologies. She enjoys helping and tutoring others. When she is not coding, she likes to spend her time reading books or traveling.
Here's what I've written (so far):
Baeldung on Java
- All
- Spring (4)
- Core Java (4)
- Testing (3)
- REST (2)
- Persistence (2)
- Java Numbers (2)
- Java (2)
- JPA (2)
- Web Services (1)
- Spring Web (1)
- Spring MVC (1)
- Security (1)
- Networking (1)
- Maven (1)
- Logging (1)
- Java Concurrency (1)
- Java Collections (1)
- Jackson (1)
- JVM (1)
Logging With AOP in Spring
A quick tutorial on AOP logging with Spring.
Get Specific Part From SOAP Message in Java
Filed under Web Services
Learn several ways to get a specific part of a SOAP Message in Java.
Difference Between 1L and (long) 1
Filed under Java Numbers
Learn the differences between defining a long value using literal representation and casting an int value to a long.
Differences Between * and ? in Cron Expressions
Filed under Java
Learn the differences between the asterisk and the question mark special characters in cron expressions.
Executable Comments in Java
Filed under Core Java
Learn how comments and Unicode escape sequences work together.
Drawbacks of the Singleton Design Pattern
Filed under Java
Learn the general drawbacks of the Singleton design pattern and check out some alternatives.
Double Precision Issue in Java
Filed under Java Numbers
Learn what the double precision issue is, how it affects code, and how to deal with it.
Check if Certificate Is Self-Signed or CA-Signed With Java
Filed under Security
Learn how to determine if a certificate is self-signed or signed by a trusted Certificate Authority (CA).
Unit Testing of System.in With JUnit
Filed under Testing
Learn how to test user input scenarios using System.in with JUnit 4 and JUnit 5.
Asserting Equality on Two Classes Without an equals() Method
Filed under Testing
Learn a few ways of testing for the equality of two objects without the equals() method.
Why Is Field Injection Not Recommended?
Filed under Spring
Understand why field injection isn’t recommended and what alternative approaches we can use.
Is CompletableFuture Non-blocking?
Filed under Java Concurrency
Understand the scenarios when CompletableFuture is non-blocking and when it’s not.
Difference Between th:text and th:value in Thymeleaf
Filed under Spring MVC
Understand the differences between the th:text and th:value Thymeleaf attributes.
Remove Entity with Many-to-Many Relationship in JPA
Filed under JPA
A quick and practical guide to removing entity with many-to-many relationships in JPA.
UUID vs. Sequential ID as Primary Key
Filed under Persistence
A comparison between sequential IDs and UUIDs used as primary keys.
Getting the Current ApplicationContext in Spring
Filed under Spring
Learn how to get the current ApplicationContext in a Spring application.
Memory Types in JVM
Filed under JVM
Learn about the different memory types in the Java Virtual Machine (JVM) and understand the reasons for some common memory-related errors.
@JsonIgnore vs @Transient
Learned the differences between the @JsonIgnore and @Transient annotations and understand when to use them.
Type Parameter vs Wildcard in Java Generics
Filed under Core Java
A detailed explanation about generics, how and when to use type parameters, and when wildcards are more appropiate.
Getting Started with Blaze Persistence
Filed under Persistence
A brief introductory guide to the Blaze criteria API reviewing the basic parts of queries and also how to use views.
Send Array as Part of x-www-form-urlencoded Using Postman
Filed under REST, Spring Web
How to send array data using x-www-form-urlencoded via Postman.
Difference Between Class.getResource() and ClassLoader.getResource()
Filed under Core Java
Learn the difference between the Class.getResource and ClassLoader.getResource methods.
@Operation vs @ApiResponse in Swagger
Uses and differences between @ApiOperation and @ApiResponse.
Maven Snapshot Repository vs Release Repository
Filed under Maven
Learn how to use Maven snapshots and releases, and the differences between them.
Is There a Destructor in Java?
Filed under Core Java
Learn about the possibility of object destruction in Java.
Get Domain Name From Given URL in Java
Filed under Networking
Learn different ways to get a domain name from a given URL in Java.
Differences Between Iterator and Iterable and How to Use Them?
Filed under Java Collections
Explore the usage of Iterable and Iterator interfaces in Java and understand the differences between them.
Baeldung on Computer Science
- All
- Math and Logic (1)
Check if a Binary Number Is Divisible by 3
Filed under Math and Logic
A quick tutorial to determine if a binary number is divisible by 3.