Gil Zilberfeld explains the data integration tests in Spring

Integration Testing with Spring – Data II

Today we’ll tackle JDBC options for testing in Spring. Before we start, there’s one more annotation to learn from Spring: @Repository. We put it on a class to tell Spring that this is a data class, talking to a data… Continue Reading…

Gil Zilberfeld explains the data integration tests in Spring

Integration Testing with Spring – Data I

We’ve discussed what Spring can do for us in terms of integration tests so far, but nothing says more integration than database integration. First, let’s define what we want in our integration tests, before we describe how the wonderful people… Continue Reading…

Gil Zilberfeld explains how to using mocking in Spring integration tests

Integration Testing with Spring – Mocking III

Mocking in Spring is very useful in testing scenarios. This post is about the MockBean capabilities of Spring.

Gil Zilberfeld explains how to using mocking in Spring integration tests

Integration Testing with Spring – Mocking II

Mocking in Spring is very helpful in testing scenarios. It allows you to inject mocks of beans, database connections and APIs.

Gil Zilberfeld explains how to using mocking in Spring integration tests

Integration Testing with Spring – Mocking I

Mocking in Spring is very helpful in testing scenarios. It allows you to inject mocks of beans, database connections and APIs.

Gil Zilberfeld explains Spring files and how they relate to integration tests

Integration Testing with Spring – Profiles

Profiles in Spring is very helpful in testing scenarios. You can run the same test under different profiles.

Gil Zilberfeld describes how to avoid problems created with bean injection in Spring integration tests

Integration Testing With Spring – Avoiding Problems

We already know that Spring is complex. And we’ve just scratched the surface. One of the problem with complex frameworks is that they do so much, that when something goes wrong they are not that smart about analyzing the situation.… Continue Reading…

Gil Zilberfeld explains the Primary bean annotation for using in integration tests.

Integration Testing with Spring – Primary Beans

Injecting beans in Spring is very helpful in testing scenarios. You can run the same test with production code beans, and mocks.

Gil Zilberfeld discusses spring features for integration testing, this time nested configurations

Integration Testing with Spring – Nested Configurations

Let’s dig deeper into configurations for integration tests in Spring. We’ll start with a nested integration context example, for a class (that might be a test class, because that’s our main focus). While we can use @Import, if we set up… Continue Reading…

Join the State of Testing Survey 2018

PractiTest is running the annual State of Testing Survey until the end of January. Go there and give your input!

Copyright Gil Zilberfeld, 2025