Skip to content
SPECIFICTION
Get listed

grpcmock

grpcmock.org

Self-hosted
Visit grpcmock.org
Spec score 6.9 #23 of 24 in gRPC Tools

Spec sheet

Purpose
gRPC Mock is a Java testing tool for mocking gRPC service endpoints in integration or unit tests.Read 8 Oct 2026 · grpcmock.org
Intended users
The project describes itself as a tool for Java developers writing integration or unit tests for gRPC services.Read 8 Oct 2026 · grpcmock.org
License
The project’s GitHub page identifies its license as Apache-2.0.Read 8 Oct 2026 · github.com
Concurrency limitation
In multithreaded test setups, static configuration methods can produce UNIMPLEMENTED errors because gRPC Mock uses a ThreadLocal instance.Read 4 Oct 2026 · grpcmock.org
Configuration
It configures stubs through a fluent Java API and can match request headers and bodies.Read 8 Oct 2026 · grpcmock.org
gRPC methods
It supports unary, server streaming, client streaming, and bidirectional streaming methods.Read 8 Oct 2026 · grpcmock.org
In-process option
Spring Boot and JUnit 5 examples show how to run an in-process server for tests.Read 8 Oct 2026 · grpcmock.org
Invocation verification
Tests can verify method invocations, including status, headers, requests, and invocation counts.Read 8 Oct 2026 · grpcmock.org
JUnit 5 integration
The grpcmock-junit5 module provides JUnit 5 extensions, including an in-process server option.Read 8 Oct 2026 · grpcmock.org
JUnit integration
The grpcmock-junit5 module provides JUnit 5 extensions, including an in-process server option.Read 4 Oct 2026 · grpcmock.org
Matching
Stubs can match request headers and request bodies.Read 4 Oct 2026 · grpcmock.org
Multithreaded tests
The documentation says static configuration methods use a ThreadLocal instance and recommends accessing a GrpcMock instance when setup and test methods run on different threads.Read 8 Oct 2026 · grpcmock.org
Project status
The site describes gRPC Mock as open source.Read 4 Oct 2026 · grpcmock.org
Response behavior
Individual responses can have configurable delays, and stubs can return different responses on subsequent invocations.Read 8 Oct 2026 · grpcmock.org
Spring Boot integration
The grpcmock-spring-boot module integrates gRPC Mock with Spring Boot tests.Read 8 Oct 2026 · grpcmock.org
Stubbing
It configures gRPC method stubs through a fluent Java API.Read 4 Oct 2026 · grpcmock.org
Supported methods
It supports unary, server streaming, client streaming, and bidirectional streaming methods.Read 4 Oct 2026 · grpcmock.org
Test lifecycle
With the documented JUnit 5 extensions, stubs are cleared after each test and the server shuts down after the test class finishes.Read 8 Oct 2026 · grpcmock.org
Verification
Tests can verify method invocations, including invocation counts, status, headers, and request messages.Read 4 Oct 2026 · grpcmock.org

Where Specifiction places it

Alternatives to grpcmockAll alternatives →