Gil Zilberfeld explains another part of Spring support for integration tests and configuration classes.

Integration Testing with Spring: A Custom Configuration

Here’s the situation: We have a couple of configuration files we use for integration tests. Each of them is a different set of real and mock objects. Some of the objects have behaviors set on them (using Mockito.when) in the… Continue Reading…

Gil Zilberfeld talks about integration testing a REST API

Integration Testing with Spring – Testing A REST API

After we understand how to use mocks in Spring in integration tests, let’s take a look at a setup for testing a REST service that uses a dependency we want to mock. API testing is a usual integration test scenario,… Continue Reading…

Unit tests Anti-pattern – Not Asserting

You’d think that we don’t need this kind of post in our day and age, but I still see unit tests written without the assert part.

Creating A Unit Testing Strategy – #AgileTDMondays

Had a great time presenting this presentation at Agile Testing Days Mondays – the weekly webinar series by the awesome #AgileTD folks (that’s you Sabine!). Here’s the recording. [youtube https://www.youtube.com/watch?v=j7rS-L5CMM4&w=560&h=315]

“Why TDD is important for everyone” Video from Agile Greece Summit 2016

Well, the video is up. You can also check out the slides here. Great fun presenting there.

“TDD Patterns” Video from Agile Prague 2016

And here’s the video. If you want to catch the other session I did about “Unit testing strategy”, it’s here. You can find the slides here.

“Creating a Unit Testing Strategy” Video from Agile Prague 2016

Agile Prague was great. You can check the slides here. And now the video.

“Why Everyone Should Care About TDD” Slides from Agile Greece

Had a very nice time at Agile Greece. Apart from the “Advanced Agile Programming” workshop, I gave a modified version of the “TDD for the rest of us”. Of course, Star Wars light sabers were involved. [slideshare id=66092356&doc=whytddisimportantforeveryone-160916114121]

Unit Tests Anti-patterns: TDD without refactoring

Anti-patterns are patterns with negative consequences. In this series I’m going to tackle those patterns, explain what they signify in terms of risks, and what to do instead. Let’s look at a pattern common to people who start out on… Continue Reading…

TDD In Real Life – Part 2

Last time we’ve started talking about how to approach TDD in real, complex systems. While plain vanilla TDD assumes nothing about the world around our component, in real life, there are constraints we need to relate to. Where we stopped,… Continue Reading…

Copyright Gil Zilberfeld, 2025