my blog. for you.

Reden wir über Digitales.

Ich bin selbständiger IT Berater und Unternehmer in der Internet und Software Branche. Ich beschäftige mich mit Design, Enterprise Applikationen, Web Apps und SaaS Produkten. Ich entwerfe und entwickle Business Lösungen und Anwendungen. Ich helfe Unternehmen in Sachen Software Qualität und Wissenstransfer, z.B. mit Angular und Spring Boot.

Spring Boot Tip: A Simplified Way of Creating ArgumentCaptors with Mockito 5.7.0

Leider ist der Eintrag nur auf Britisches Englisch verfügbar.Maciej Walkowiak recently published this tip on a simplified way of creating Mockito ArgumentCaptors with Spring Boot 3.2.x: 💡 Mockito 5.7.0 (included in Spring Boot 3.2) introduced simplified way for creating argument captors: pic.twitter.com/MEdJ3dlwum— Maciej Walkowiak 🍃 (@maciejwalkowiak) December 13, 2023 Read more

ArchUnit Spring Integration

Leider ist der Eintrag nur auf Britisches Englisch verfügbar.ArchUnit is a tremendously useful library for enforcing Java application architecture via unit testing. Fellow software developer and consultant Roland Weisleder recently published a new library called ArchUnit Spring Integration that helps with - well - better integrating ArchUnit with Spring applications. By introducing a DSL, ArchUnit Spring Integration allows you to easily enforce constraints regarding common Spring stereotypes such as @RestController. For example, using ArchUnit Spring Integration you can make sure that methods annotated ... Read more

Spring Boot & Flyway – How to Clear a Test Database Between Integration Tests

Leider ist der Eintrag nur auf Britisches Englisch verfügbar.A few months ago, consultant and prolific open source contributor Maciej Walkowiak, of Spring Cloud AWS and just fame, wrote about clearing test databases between integration tests with Spring Boot and Flyway. The recipe / pattern for restoring a test database to its previous state (i.e. the state before a specific integration test has been executed) outlined in that article should come in handy to anyone working with Spring Boot. Moreover, the basic concept ... Read more

WireMock Spring Boot

Leider ist der Eintrag nur auf Britisches Englisch verfügbar.WireMock is an API mocking tool that enables developers to simulate REST APIs during testing. In a system-under-test fashion, it allows us to remove external, potentially flaky, dependencies from our test environment to make our unit tests more focussed and more reliable. WireMock Spring Boot is a new library by consultant and prolific open source contributor Maciej Walkowiak that "drastically simplifies WireMock configuration in a Spring Boot and JUnit 5 application". Featuring a fully ... Read more

Testing with Spring, AOT, GraalVM, and JUnit 5 by Sam Brannen @ Spring I/O 2023

Leider ist der Eintrag nur auf Britisches Englisch verfügbar. Read more

Things I Wish I Knew When I Started Testing Spring Boot Applications by Philip Riecks @ Spring I/O

Leider ist der Eintrag nur auf Britisches Englisch verfügbar. Read more

Testcontainers and Spring Boot From Integration Tests to Local Development – Oleg Šelajev @ Spring I/O 2022

Leider ist der Eintrag nur auf Britisches Englisch verfügbar. Read more

Testing with Spring and JUnit 5 by Sam Brannen @ Spring I/O 2022

Leider ist der Eintrag nur auf Britisches Englisch verfügbar. Read more

How Fixing a Broken Window Cut Down Our Build Time by 50% By Philip Riecks @ Spring I/O 2022

Leider ist der Eintrag nur auf Britisches Englisch verfügbar.At Spring I/O 2022, Philip Riecks, one of my fellow authors of "Stratospheric - From Zero to Production with Spring Boot and AWS" gave this interesting talk on reducing build time by addressing a "broken windows" problem that can occur if we take (too many) shortcuts when writing software tests: Read more

Clearing the Spring Security Context During Unit Testing

Leider ist der Eintrag nur auf Britisches Englisch verfügbar.Last week I wrote about a minimal Spring Security Context setup for unit testing. I'd like to add just a tiny, yet depending on your use case perhaps quite important, tidbit to that: In case you need to reset a SecurityContext setup, e.g., a mocked user authentication, because, for instance, other test methods from the same unit test class verify behaviour for an unauthenticated application state and hence expect an anonymous user, you ... Read more
Nächste Seite »