{"repo":"Fadelis/grpcmock","free":true,"listed":false,"github":"https://github.com/Fadelis/grpcmock","clone":"git clone https://github.com/Fadelis/grpcmock.git","description":"A gRPC Java testing tool to easily mock endpoints of gRPC services for IT or Unit testing","language":"Java","stars":158,"topics":["grpc","junit5","mapping-stubs","grpc-services","spring-boot","mocking","grpc-testing","grpc-mocking","grpc-java","grpc-it"],"license":"Apache-2.0","category":"networking-infra","readme_excerpt":"gRPC Mock A gRPC Java testing tool to easily mock endpoints of gRPC services for IT or Unit testing. The tool follows a similar DSL type of structure to HTTP mocking service WireMock. Features - gRPC method stubbing configurable through a fluent Java API - Headers and request body matchers to determine the correct stub - Configurable delay for individual responses - Verifiable method invocations for specific method - Supported gRPC method types: - Unary methods - Server streaming methods - Client streaming methods - Bidi stream methods Quick usage Unary methods See more examples Server streaming methods See more examples Client streaming methods Stubs for client streaming method calls are selected on receiving first stream request message. See more examples Bidi streaming methods Stubs for bidi streaming method calls are selected on receiving first stream request message. See more examples Verifying invocation count See more examples Integrations See example projects Spring-Boot gRPC Mock integrates with Spring-Boot via grpcmock-spring-boot module. You have to declare the @AutoConfigureGrpcMock for the test class to enable gRPC Mock: If the gRPC Mock port is set to 0, then a random port will be selected for the server. It is the recommended approach to improve test run times. Once a random port is selected it can be accessed via ${grpcmock.server.port} property and used in gRPC Channel creation. It's also possible to use InProcess server with Spring-Boot If you don't set name","default_branch":null,"files":null,"tree":[],"storefront":"/r/Fadelis","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Fadelis/grpcmock/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}