Skip to content
Geeky Hacker

Geeky Hacker

Coding, Tech & Linux

  • Spring Boot
  • JPA
  • Kafka
  • Testing
    • Testcontainers
    • Mockito
  • Java
  • Kotlin
  • Linux
  • DevOps
    • AWS
    • CI/CD
    • Docker
    • Kubernetes
  • Database
    • MySQL
    • PostgreSQL
  • Spring Boot
  • JPA
  • Kafka
  • Testing
    • Testcontainers
    • Mockito
  • Java
  • Kotlin
  • Linux
  • DevOps
    • AWS
    • CI/CD
    • Docker
    • Kubernetes
  • Database
    • MySQL
    • PostgreSQL

Search Results for: junit

Assert no exception is thrown in AssertJ and JUnit 5

Assert no exception is thrown in AssertJ and JUnit 5

Last updated on 30 December, 2024

It is sometimes necessary to test that a piece of code does not throw an exception or that an exception is caught in another code block, ensuring that the caller …

Pass null values in JUnit 5 @CsvSource

Pass null values in JUnit 5 @CsvSource

Last updated on 30 December, 2024

JUnit 5 @CsvSource allows writing parameterized tests without creating a CSV file or writing a method to feed data. However, handling nulls is not provided out of the box and …

Using Mockito annotations in JUnit 5

Using Mockito annotations in JUnit 5

Last updated on 30 December, 2024

Using Mockito annotations in JUnit 5. The latest release of JUnit is not backward compatible and does not work straightforwardly with many testing frameworks such as Mockito. Mockito annotations do …

Assert exceptions in AssertJ

Assert exceptions in AssertJ

Last updated on 30 December, 2024

Besides JUnit, AssertJ is another popular testing framework for Java that provides a fluent API for writing clear and concise test assertions. It improves the readability of test code and …

PostgreSQL integration tests using Testcontainers

PostgreSQL integration tests using Testcontainers

Last updated on 30 December, 2024

Running tests against a real database provides more confidence in comparison to an in-memory database such as H2. For that, the Testcontainers library is a wise choice as it provides …

Spring Boot Redis integration test with Testcontainers in Kotlin

Spring Boot Redis integration test with Testcontainers in Kotlin

Last updated on 30 December, 2024

Like any other external dependency, we can write integration tests using Testcontainers for a Spring Boot application. However, unfortunately, Testcontainers does not have any library for Redis, and using Kotlin …

Posts navigation

Older posts
  • Terms of Service
  • Cookie Policy
  • Privacy Policy
  • X
  • GitHub
  • Telegram
  • YouTube
  • RSS Feed
  • Cheat Sheets
  • Donate
  • Contact
© 2013-2024 Geeky Hacker Powered by WordPress and Bam.
Donate Bitcoin

The unbeatable, the father and the king of kings, Bitcoin!

Geeky Hacker wallet number: 1NaGzvbXQtM9PCduXgmFeXe8D4i5C1nDyu

Donate BAT

BAT is a coin that is used by Brave Browser which is getting more popularity day by day.

Geeky Hacker wallet number: 0x40146D985b995E5bB5b2A7FDc618db689a811DCB

Donate Ethereum

Yet another cryptocurrency that is super popular. You can donate us in Ethereum.

Geeky Hacker wallet number: 0x1f98767fB7c51efc35C313B0015C6aB453D4ED31