VOOZH about

URL: https://www.javacodegeeks.com/tag/mockito

⇱ Mockito Archives - Java Code Geeks


  • Core Java👁 Image
    Omozegie AziegbeJanuary 16th, 2026
    0 682

    Getting Started with JUnit 5 Testing in Micronaut

    Micronaut makes testing Java applications straightforward with native JUnit 5 integration. Its lightweight dependency injection, embedded server support, and simple…

    Read More »
  • Enterprise Java👁 spring-interview-questions-answers
    Omozegie AziegbeDecember 15th, 2025
    0 525

    Using @MockitoSpyBean in Spring

    Testing is an essential part of building reliable Spring Boot applications. Often, we need to observe or modify the behaviour…

    Read More »
  • Enterprise Java👁 Image
    Yatin BatraNovember 14th, 2025
    0 1,048

    Mocking AmazonSQS in Unit Tests

    Unit tests should be fast, isolated, and deterministic. When your Java application interacts with AWS SQS, you want to avoid…

    Read More »
  • Core Java👁 Image
    Mary ZhengNovember 4th, 2025
    0 473

    Mocking Logger and LoggerFactory Example

    1. Introduction The SLF4J library provides the Logger interface and LoggerFactory utility class to create a logger instance for a…

    Read More »
  • Core Java👁 Image
    Omozegie AziegbeApril 24th, 2025
    0 1,397

    Mockito Stub Getter & Setter Example

    Mockito offers a straightforward approach to mocking method calls in unit tests, helping us isolate components and validate their behavior…

    Read More »
  • Core Java👁 Image
    Omozegie AziegbeApril 17th, 2025
    0 2,460

    Mocking JDBC Components in Unit Tests with Mockito

    Unit testing JDBC-based code can be challenging due to its reliance on live database interactions. Using Mockito, we can mock…

    Read More »
  • Core Java👁 Image
    Eleftheria DrosopoulouApril 17th, 2025
    0 349

    Mockito vs. Mocking the JVM: Bytecode Manipulation for Ultimate Test Control

    Mockito is the go-to mocking framework for Java developers, but it has limits—it can’t mock final classes, static methods, or…

    Read More »
  • Core Java👁 Image
    Omozegie AziegbeApril 4th, 2025
    0 1,954

    How to Handle Generic List Matchers in Mockito

    Mockito is a widely used Java library for creating mock objects in unit tests. Mocking enables us to replace the…

    Read More »
  • Enterprise Java👁 Image
    Yatin BatraMarch 24th, 2025
    0 1,255

    Mock JWT Decoding with JwtDecoder in JUnit Tests

    JSON web tokens (JWTs) are widely used for microservices and Spring security authentication. When testing Spring applications, mocking JWT decoding…

    Read More »
  • 1
  • 2
  • 3
  • 4
  • 5
  • »
  • ...
  • Last
Back to top button
Close