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: mockito

Mockito return based on the input parameter

Mockito return based on the input parameter

Last updated on 30 December, 2024

Mockito, the defacto mocking library in the Java world that is widely adopted. It is used one way or another by almost any Java project. Mockito is known for its …

When and how to spy objects in Mockito

When and how to spy objects in Mockito

Last updated on 30 December, 2024

When it comes to mocking objects in Java unit testing, Mockito is the de-facto framework. It is powerful, easy to use, and supports different testing approaches, whether TDD, BDD, etc. …

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 …

How to mock @Value field in Spring Boot

How to mock @Value field in Spring Boot

Last updated on 30 December, 2024

The @Value annotation injects externalized properties into a Spring Boot application. The field’s value is usually read from the application.properties or application.yml file. While @Value eases the reading of externalized …

Write Kafka integration test with Testcontainers

Write Kafka integration test with Testcontainers

Last updated on 30 December, 2024

Writing a Spring Boot Kafka integration test can be frustrating even by leveraging the spring-kafka-test library that supplies an embedded Kafka. That’s mainly due to the complex test configuration that …

Test Spring Kafka consumer and producer with EmbeddedKafka

Test Spring Kafka consumer and producer with EmbeddedKafka

Last updated on 30 December, 2024

Writing tests is the least favorite task of any developer, especially when it involves any external party. In our case, Kafka. Not only working with Kafka can be challenging, writing …

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