Introduction to Spies
Petri Kainulainen Blog
by
2d ago
When we are writing automated tests for our code, often we notice that it's not possible to invoke the real dependencies of the system under test. The problem might be that: The problematic dependency invokes an external API which cannot be accessed from our test environment. We cannot invoke the real dependency because invoking it ..read more
Visit website
Introduction to Dummies
Petri Kainulainen Blog
by
1M ago
When we are writing automated tests for our code, often we notice that it's not possible to invoke the real dependencies of the system under test. The problem might be that: The problematic dependency invokes an external API which cannot be accessed from our test environment. We cannot invoke the real dependency because invoking it ..read more
Visit website
Introduction to Mocks
Petri Kainulainen Blog
by
2M ago
When we are writing automated tests for our code, often we notice that it's not possible to invoke the real dependencies of the system under test. The problem might be that: The problematic dependency invokes an external API which cannot be accessed from our test environment. We cannot invoke the real dependency because invoking it ..read more
Visit website
Introduction to Fakes
Petri Kainulainen Blog
by
2M ago
When we are writing automated tests for our code, often we notice that it's not possible to invoke the real dependencies of the system under test. The problem might be that: The problematic dependency invokes an external API which cannot be accessed from our test environment. We cannot invoke the real dependency because invoking it ..read more
Visit website
Writing Unit Tests for Spring MVC Controllers: Forms
Petri Kainulainen Blog
by
4M ago
The previous part of my Spring MVC Test tutorial described how we can write unit tests for a Spring MVC controller that renders a list. This blog post provides more information about writing unit tests for Spring MVC controllers which insert data into the used database. To be more specific, this blog post describes how ..read more
Visit website
Writing Unit Tests for a Spring MVC REST API: Configuration
Petri Kainulainen Blog
by
4M ago
Earlier we learned that we should configure the system under test by using the standalone configuration when we are writing unit tests for Spring MVC controllers. In this blog post, we will put theory into practice. This blog post describes how we can use the standalone configuration when we are writing unit tests for Spring ..read more
Visit website
Writing Unit Tests for a Spring MVC REST API: Returning a Single Item
Petri Kainulainen Blog
by
4M ago
The previous part of my Spring MVC Test tutorial described how we can send HTTP requests to the system under test and write assertions for the response returned by the tested controller method. This blog post describes how we can use the information provided by the previous part of this tutorial when we are writing ..read more
Visit website
Writing Unit Tests for a Spring MVC REST API: Returning a List
Petri Kainulainen Blog
by
4M ago
The previous part of my Spring MVC Test tutorial described how we can write unit tests for Spring MVC controllers which return the information of a single item as JSON. This blog post provides more information about writing unit tests for a Spring MVC REST API. To be more specific, this blog post describes how ..read more
Visit website
Writing Unit Tests for a Spring MVC REST API: Writing Data
Petri Kainulainen Blog
by
4M ago
The previous parts of my Spring MVC Test tutorial described how you we can write unit tests for a Spring MVC REST API when the system under test returns the information of a single item or returns a list. In other words, now we know how we can write unit tests for Spring MVC controllers ..read more
Visit website
Introduction to Stubs
Petri Kainulainen Blog
by
4M ago
When we are writing automated tests for our code, often we notice that it's not possible to invoke the real dependencies of the system under test. The problem might be that: The problematic dependency invokes an external API which cannot be accessed from our test environment. We cannot invoke the real dependency because invoking it ..read more
Visit website

Follow Petri Kainulainen Blog on Feedspot

Continue with Google
OR