Home
RG9.DEV
Cancel

Elevate your Regex: Named Capturing Groups in Java's JDK 20 API

NOTE: Originally posted on https://blog.cronn.de/en/java/2023/07/14/named-capturing-groups-in-jdk-20.html TL;DR Since JDK 11 there haven't been any significant changes to Regex API. In JDK 20...

AssertJ custom representation of asserted object

I really enjoy asserting collections with AssertJ. Usually it’s safer and simpler to use containsExactlyInAnyOrder rather than asserting individual elements (collection.get(0)) - even if there is o...

Introducing safe-eyes-cli: strict break reminder based on YAD

I’m excited to share with you a new tool that I’ve been using to help protect my eyes while working on my computer. It’s called safe-eyes-cli and it’s inspired by the popular Safe Eyes application....

Cheatsheet - Docker / Podman

This is series of “cheatsheet” articles, which gather tips, hacks, useful commands for given tool. Commands Run docker docker run -it --rm -p 3000:3000 -e "DEFAULT_STEALTH=true" -v '/tmp/pdf:/us...

Three ways to configure HTTP Proxy in Playwright

TL;DR In fact, in Playwright v.1.31.1 there are three ways to configure an HTTP proxy: chromium.launch browser.newContext page.setExtraHTTPHeaders, but works only on Firefox Today I was...

JUnit's @CsvSource.quoteCharacter

@CsvSource used with text blocks is really awesome! Similarly to validation files, it can be used to create easily readable tests with readily visible inputs and outputs placed side by side. For e...

The hassle of transitive dependencies across sub-projects in Gradle

NOTE: Originally posted on https://blog.cronn.de/en/gradle/java/2021/05/06/gradle-dependencies-gotchas-in-subprojects.html You have probably heard the term dependency hell. Modern build tools,...

Adventure of H2 upgrade that lead to reveal Spring misconfiguration in my tests

Dependency upgrade sometimes may cause some fear of unknown … especially when release contains 100+ changes :smile: Recently I was updating H2 in tests sources to the latest version - 1.4.200. My p...