-
Continue reading →: Package a TestJar for a Java Project
Most Spring Boot projects treat src/test/java as an internal implementation detail: it exists to make CI green and never leaves the build machine. But there’s a useful pattern that turns a subset of your tests into a portable, deployable artifact — one you can run after a deployment, against a…
-
Continue reading →: Connct Spring Boot/Java Project to JSM/IBM MQ
pom.xml docker-compose.yml Unchanged — the dev image auto-creates DEV.QUEUE.1, DEV.APP.SVRCONN, and app user app. application.yml MQConfig.java MessageService.java MessageServiceIT.java Running it
-
Continue reading →: Java Design Patterns in Spring Boot
In the previous post, i explained adapter, service and facade in the context of rest api. hier further design patterns in the spring boot/ Java context. Six patterns, one REST-backed domain (City weather lookup), minimal code, minimal words. 1. Adapter Translates an external contract into your domain model. java 2.…
-
Continue reading →: Adapter, Service, and Facade in a Spring Boot REST client context
Adapter — wraps the external API, translates its shape into your domain shape. java Service — contains business logic, uses the adapter, doesn’t know about HTTP. java Facade — combines multiple services/adapters behind one simple entry point. java In one line:
-
Continue reading →: Mut, sich etwas zutrauen, den ersten Schritt machen
Manchmal fehlt uns nicht das Wissen. Manchmal fehlen uns nicht die Fähigkeiten. Und oft fehlt uns auch nicht die Erfahrung. Was uns fehlt, ist der Mut, uns selbst etwas zuzutrauen. Ich kenne das von mir selbst. Es gibt Situationen, in denen ich genau weiß, dass ich die nötigen Kenntnisse habe.…
-
Continue reading →: GitLab CI/CD Basics for a Java Spring Boot Project
The file GitLab actually looks for is .gitlab-ci.yml. It’s easy to mistype, so let’s get the name right before we get into the content. This post walks through the basics of that file, using a simple Java Spring Boot (Maven) project as the example. What is .gitlab-ci.yml? It’s a YAML…
-
Continue reading →: Configuring the AWS S3 Java Client
The AWS SDK for Java v2 makes S3 access straightforward once you’ve seen the right shape for it. This post walks through a minimal Spring Boot configuration, the YAML settings that drive it, a small service with the S3 operations you’ll use most, and an integration test that runs against…
-
Continue reading →: JUnit 6: What’s New
Below are the changes worth knowing, each with a short, runnable-style example. 1. Java 17 as prerequisite JUnit 6 requires Java 17 or higher. Java 8–16 support is gone. This lets JUnit’s own code use modern language features internally, and it matches where the rest of the ecosystem (Spring 6,…
-
Continue reading →: Black Box, White Box, and Gray Box Testing
Black Box Testing What it is: Testing the application without knowledge of its internal code or structure. The tester only sees inputs and outputs. Focus: Functionality, not implementation. Key points: Use it when: White Box Testing What it is: Testing with full knowledge of the internal code, logic, and structure.…
-
Continue reading →: Testing HTTP Clients in Java with WireMock and Spring Boot
When a Spring Boot application calls an external REST API, integration tests face a familiar problem: the real service might be slow, unavailable, or simply impossible to control. WireMock solves this by running a local HTTP server that simulates the external API. You define stubs — rules that say „if…
