This blog post describes how we can write our first test class with JUnit 5. After we have finished this blog post, we: Can create test classes with JUnit 5. Know how we can use setup and teardown methods. Understand how we can write simple test methods with JUnit 5. Let's start by creating our […] Read more
JUnit 5
This blog post describes how we can create a Gradle project that can compile and run unit tests which use JUnit 5. After we have finished this blog post, we: Can get the required dependencies with Gradle Understand how we can use the Gradle's native JUnit 5 support. Can run our unit tests with Gradle. […] Read more
This blog post describes how we can create a Maven project that can compile and run unit tests which use JUnit 5. After we have finished this blog post, we: Can get the required dependencies with Maven. Understand how we can configure the Maven Surefire Plugin. Know how we can run our unit tests with […] Read more
The previous part of my new Spring MVC Test tutorial taught us how we can configure the system under test when we are writing unit tests for "normal" Spring MVC controllers. We also learned that if we don't want to add duplicate code to our test classes, we should send HTTP requests to the system […] Read more
I just published a free sample lesson of my Test With Spring course. After we have finished this lesson, we understand how we can write unit tests for a REST API which returns data as Json by using Kotlin and JUnit 5. This lesson assumes that: You can configure the system under test when you […] Read more
I just published a free sample lesson of my Test With Spring course. After we have finished this lesson, we: Understand how we can remove duplicate code from our test suite. Can configure the system under test by using the standalone configuration when we are writing unit tests for a Spring REST API with Kotlin, […] Read more