Java Developer Learns React #1: Extending Styles With Styled Components
Petri Kainulainen Blog
by Petri Kainulainen
2d ago
Recently I started to learn React (and frontend development in general) and it has been a really humbling experience. I think that the biggest reason for this is that I am used to writing traditional web applications and REST APIs with Spring and these applications use synchronous communication between the backend and the user / client. In React, most of the important things seem to be asynchronous which can be challenging if you like to try things out yourself before you read the user manual (old habits die hard). To make matters worse, the last time I did frontend development was when doing ..read more
Visit website
Clean Test Automation Monthly 11 / 2023
Petri Kainulainen Blog
by Petri Kainulainen
3d ago
The Clean Test Automation Monthly is a monthly blog post that highlights the best test automation content which I read during the current month. This blog post is always published on the last day of the month. Let's begin! Testcontainers Best Practices is an excellent blog post that highlights nine best practices which we should follow when we are writing tests which use Testcontainers. Avoid mocking the ObjectMapper! describes why we shouldn't mock the ObjectMapper when we are writing tests for code that uses the ObjectMapper. First, I agree that we should never replace the ObjectMapper with ..read more
Visit website
My Black Friday Sale
Petri Kainulainen Blog
by Petri Kainulainen
2w ago
I am offering a 40 percent discount from the tax free prices of my text-based testing courses which I sell on cleantestautomation.com. Here are the discount prices of my testing courses: The Introduction to AssertJ-DB course describes how you can replace XML data set files with assertions written with Java (or any other JVM language) when you have to write assertions for data that's found from a relational database. This course has 6 lessons, 17 exercises, and 2 quizzes. The price of this course is 7,50€ + VAT. The Introduction to JUnit 5 course helps you to get started with JUnit 5 and teach ..read more
Visit website
The Best Tools for Writing Integration Tests for Spring Boot Web Applications
Petri Kainulainen Blog
by Petri Kainulainen
2w ago
Before we will learn how to write integration tests for Spring Boot web applications, it's a good idea to take a quick look at the tools which help us to write better tests. This blog post highlights six testing tools which we should use when we are writing integration tests for Spring Boot web applications. Let's begin. 1. JUnit 5 This is an obvious choice. JUnit 5 is the default testing framework of Spring Boot, but it's also an extremely popular testing framework that’s used to write tests for JVM applications. In other words, if we have to write tests for JVM applications in 2023, it's ver ..read more
Visit website
Clean Test Automation Monthly 10 / 2023
Petri Kainulainen Blog
by Petri Kainulainen
1M ago
The Clean Test Automation Monthly is a monthly blog post that highlights the best test automation content which I read during the current month. This blog post is always published on the last day of the month. Let's begin! WireMock joins the Testcontainers Official Modules Program announces the release of an official Testcontainers WireMock module. At the moment that module offers implementation for Java, Goland, and Python (more is coming soon). I love WireMock and it's great to see that it gets the "recognition" it deserves. Simplify Testing Golang Apps with testcontainers-go describes how w ..read more
Visit website
Clean Test Automation Monthly 9 / 2023
Petri Kainulainen Blog
by Petri Kainulainen
2M ago
The Clean Test Automation Monthly is a monthly blog post that highlights the best test automation content which I read during the current month. This blog post is always published on the last day of the month. Let's begin! Filtering JUnit 5 Tests With Maven and Gradle describes how we can select the invoked test cases by using tag expressions and filter tests with Maven and Gradle. ArchUnit: Testing Your Architecture is an interesting blog post that describes how we can make sure that our team members follow the architecture conventions by writing automated tests for the architecture of our ap ..read more
Visit website
Introduction to JUnit 5 Extensions
Petri Kainulainen Blog
by Petri Kainulainen
2M ago
This is a free sample lesson of my Introduction to JUnit 5 course. This lesson describes what a JUnit 5 extension is, helps us to understand when JUnit 5 extensions are run, and explains how we can register JUnit 5 extensions. Read More The post Introduction to JUnit 5 Extensions appeared first on Petri Kainulainen.    Related Stories Filtering JUnit 5 Tests With Maven and Gradle Introduction to JUnit 5 Tags How to Write MockMvc Tests Without ObjectMapper, Part Three - Should We Do It?   ..read more
Visit website
Filtering JUnit 5 Tests With Maven and Gradle
Petri Kainulainen Blog
by Petri Kainulainen
3M ago
This is a free sample lesson of my Introduction to JUnit 5 course. If you like this sample lesson, you should take a look at the course. It has 23 lessons, 47 exercises, and 12 quizzes. The price of the course is 34,50€ + VAT. After you have finished this lesson, you: Can select the invoked test cases by using tag expressions. Know how you can filter JUnit 5 tests with Maven. Can filter JUnit 5 tests with Gradle. Let's begin. This lesson assumes that: You can run your tests with Maven or Gradle. You are familiar with JUnit 5 tags. Introduction to Tag Expressions Tag expressions are boolea ..read more
Visit website
How to Write MockMvc Tests Without ObjectMapper, Part Three - Should We Do It?
Petri Kainulainen Blog
by Petri Kainulainen
3M ago
A month ago I found a blog post which argues that we shouldn't build the request body with ObjectMapper when we are writing integration tests with MockMvc (aka Spring MVC Test framework). Because I think that the original blog post is quite interesting, I decided to write a blog post that evaluates if we should get rid of ObjectMapper. After we have finished this blog post, we: Understand what's the role of ObjectMapper. Can identify the pros and cons of not using ObjectMapper. Know if we should get rid of ObjectMapper. This blog post assumes that: You can replace ObjectMapper with a hard-c ..read more
Visit website
Introduction to AssertJ-DB
Petri Kainulainen Blog
by Petri Kainulainen
3M ago
This is a free sample lesson of my Introduction to AssertJ-DB course. If you like this sample lesson, you should take a look at the course. It's only 12,5€ + VAT. After you have finished this lesson, you: Know what AssertJ-DB is. Understand why you should use AssertJ-DB. Can get the required dependencies with Maven and Gradle. Understand how you can configure AssertJ-DB. Let's begin. This lesson assumes that: You are familiar with JUnit 5 What Is AssertJ-DB and Why Should You Use It? AssertJ-DB is an AssertJ module which allows you to write assertions for the data that's found from a rela ..read more
Visit website

Follow Petri Kainulainen Blog on FeedSpot

Continue with Google
Continue with Apple
OR