Learn the advantages and disadvantages of the configuring a mock object the when().thenXxx() or the doXxx().when() way.
Also find me here:
Baeldung Author
Attila Fejér
Software Engineering Expert & Technical Coach - Java, software craftsmanship, and cloud architecture. An accomplished trainer, mentor, coach, and author. Experienced leader with a track record of improving team performance. In his freetime, he likes to play on the guitar, play with his dogs, or go on a hike.
Here's what I've written (so far):
Baeldung on Java
- All
- Spring MVC (4)
- Spring Data (2)
- Spring (2)
- REST (2)
- JVM (2)
- JPA (2)
- Testing (1)
- Spring Boot (1)
- Java String (1)
- Java Streams (1)
- Java List (1)
- Java (1)
- Jackson (1)
- Core Java (1)
- Algorithms (1)
Mapping a Single Entity to Multiple Tables in JPA
Filed under JPA
Learn how to map a single Java entity to multiple database tables using JPA.
Command-Line Arguments in Java
Filed under Java
Explore how to configure your Java applications using command-line arguments.
Composition, Aggregation, and Association in Java
Filed under Core Java
Explore the properties and representation of composition, aggregation, and association in Java.
An Introduction to Epsilon GC: A No-Op Experimental Garbage Collector
Filed under JVM
Learn how Epsilon works, and explore the common use cases.
An Introduction to ZGC: A Scalable and Experimental Low-Latency JVM Garbage Collector
Filed under JVM
Explore how Z Garbage Collector manages to keep low pause times on even multi-terabyte heaps.
Java Streams peek() API
Filed under Java Streams
Learn about the peek() method and explore the lifecycle of a stream.
Mapping a Dynamic JSON Object with Jackson
Filed under Jackson
Explore multiple ways of handling dynamic JSON objects with Jackson.
Remove Leading and Trailing Characters from a String
Filed under Java String
Explore several ways to remove leading and trailing characters from a String.
Baeldung on Computer Science
- All
- Programming (5)
- Core Concepts (1)
Code Smells
Filed under Programming
Explore ideas how to prevent a codebase’s quality from decreasing.
Refactoring
Filed under Programming
Learn that refactoring is a natural and essential part of a software’s evolution
What Does It Mean to Program to Interfaces?
Filed under Programming
A quick and practical introduction to programming to an interface.
Object-Oriented vs Functional Programming
Filed under Programming
Learn about object-oriented and functional programming and discover that they are not mutually exclusive.
The General Concept of Polymorphism
Filed under Core Concepts
Learn what polymorphism is with examples.
Object-Orientation in the Real World
Filed under Programming
Explore the core concepts behind the object-oriented programming.