HIGHLIGHTS: the rules and roles of AI assisted testing, how to create a useful logging config for Spring Boot tests, and learn to write performance tests with Playwright and Lighthouse.
01.08.2025 10:05 β π 1 π 0 π¬ 0 π 0@petrikainulainen.bsky.social
Spring ninja, summer rock star, autumn hacker, and winter guru. I write code. Titles are irrelevant.
HIGHLIGHTS: the rules and roles of AI assisted testing, how to create a useful logging config for Spring Boot tests, and learn to write performance tests with Playwright and Lighthouse.
01.08.2025 10:05 β π 1 π 0 π¬ 0 π 0New in my toolkit (after resilience4j and Spring Retry): #failsafe
failsafe.dev
Nice api, clear docs, easy and flexible to integrate and use. Well done.
#java #awesomeEcoSystem
I will grab Elden Ring and Horizon Forbidden West from the Steam's summer sale. The price is decent and I guess these (+ Rocket League) will keep me entertained for the rest of this year.
01.07.2025 06:56 β π 0 π 0 π¬ 0 π 0HIGHLIGHTS: a good test name is a sentence, how to write parameterized test classes with JUnit 5, and supercharge your Playwright tests with the Chrome DevTools Protocol.
30.06.2025 16:49 β π 0 π 1 π¬ 0 π 0I have come to the conclusion that I will monetize my blog. Have you done the same? If yes, what membership plugin / service did you use?
10.06.2025 14:51 β π 0 π 0 π¬ 0 π 0This is an excellent post.
10.06.2025 11:46 β π 2 π 0 π¬ 0 π 0@ParameterizedClass @ValueSource(strings = {"foo", "bar"}) class SomeTests { @Parameter String value; @Test void shouldNotBeNull() { assertNotNull(value); } @Test void lengthShouldBeThree() { assertEquals(3, value.length()); } }
β¨ New blog post: "STF Milestone 4: Parameterized test classes"
JUnit 5.13 introduced parameterized test classes (in addition to methods). They are a powerful testing tool that has long been missing from JUnit Jupiter...
π marcphilipp.de/blog/2025/06...
I think people go through various phases of using AI:
1. AI is just a hype
2. AI seems to be helpful
3. Wow, AI is amazing and it's going to take away our jobs
4. OMG, AI made my codebase a mess
5. Okay, so I need to do the thinking and use AI to carry out the tasks.
That's actually how I did it. So, I wrote the guidelines with Markdown and then opened it, asked assistant to check my instructions and then for example generate some code. Can you use guideline files if you aren't using JUnie?
31.05.2025 18:53 β π 0 π 0 π¬ 0 π 0I am testing the Jetbrains AI Assistant and I have noticed that I can pass guidelines to AI chat by following these steps: 1) Open the markdown file which contains the guidelines 2) Open AI Chat and allows access to code base 3) Ask the assistant to read guidelines and generate code. Interesting.
31.05.2025 11:30 β π 1 π 0 π¬ 1 π 0Highlights: how to generate good tests with AI, 3 ways to run a Docker container with Testcontainers when we are writing integration tests for Spring Boot applications, and vibe testing with Playwright.
31.05.2025 09:53 β π 2 π 2 π¬ 0 π 0If you want to generate Spring controllers with openapi-generator-maven-plugin and you don't want to include Swagger annotations in the generated code, this comment describes the configuration you have to use: github.com/OpenAPITools...
26.05.2025 19:47 β π 1 π 0 π¬ 0 π 0Sure thing. I actually got guide excited about the coding guidelines because that sounds like a great way to both share guidelines for team members and of specify what kind of code should be generated.
22.05.2025 06:02 β π 1 π 0 π¬ 0 π 0Sometimes vibe-coding is relaxing, and sometimes it's not.
21.05.2025 19:25 β π 0 π 0 π¬ 0 π 0Want to use Junie AI Agent for developing #SpringBoot applications.
You should checkout the guidelines repository github.com/JetBrains/ju...
You can use "guidelines" files for AI Agents, "guidelines-with-explanations" files for developer understanding.
Your contributions are most welcome!
Spring JdbcClient: A better alternative to JdbcTemplate
www.youtube.com/watch?v=oF7v...
A practical hands-on tutorial on how to use JdbcClient to interact with SQL databases.
I think that I will try Jetbrains AI. I have a personal project which I will start from the scratch and it will be interesting to see if it can write the "boring" code when it has access to the code base.
21.05.2025 09:29 β π 1 π 0 π¬ 1 π 0Expectations vs. Reality
20.05.2025 08:22 β π 0 π 0 π¬ 0 π 0The Efficiency Delusion
19.05.2025 11:56 β π 1 π 1 π¬ 0 π 0I find it a bit funny that Github doesn't want to train AI bots: news.ycombinator.com/item?id=4393...
15.05.2025 07:54 β π 0 π 0 π¬ 0 π 0Learn to write unit tests for a #SpringBoot REST API endpoint that returns an object as JSON. This guide identifies the key tests, shows how to eliminate duplicate request building code, and demonstrates how to write the required assertions with MockMvcTester and AssertJ.
13.05.2025 15:19 β π 1 π 1 π¬ 0 π 0When you hear "Database is just an implementation detail"...RUN.
09.05.2025 06:46 β π 2 π 2 π¬ 1 π 1If you always take the easiest path, you won't learn anything.
07.05.2025 14:56 β π 0 π 0 π¬ 0 π 0My employer does pay for SW which I need, but I also pay several licenses from my own pocket. These include tools like Little Snitch, iStat Menus, IntelliJ Idea, ChatGTP, Transmit, Sublime Text, and many others.
07.05.2025 07:31 β π 1 π 0 π¬ 0 π 0I did some thinking and came to the conclusion that I have encountered three systems which I would call legacy code. Two of them were actively developed and used an in-house "framework". No one wanted to touch the third one because they were afraid that it will break.
05.05.2025 20:28 β π 0 π 0 π¬ 0 π 0