Package org.grpcmock.junit5
Class InProcessGrpcMockExtension
java.lang.Object
org.grpcmock.junit5.GrpcMockExtension
org.grpcmock.junit5.InProcessGrpcMockExtension
- All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterAllCallback,org.junit.jupiter.api.extension.AfterEachCallback,org.junit.jupiter.api.extension.BeforeAllCallback,org.junit.jupiter.api.extension.Extension
In-process gRPC Mock extension for JUnit5. All stub mappings are reset after each test method. After all tests in the test
class are done the server will be shutdown.
- Author:
- Fadelis
-
Nested Class Summary
Nested classes/interfaces inherited from class org.grpcmock.junit5.GrpcMockExtension
GrpcMockExtension.Builder -
Field Summary
Fields inherited from class org.grpcmock.junit5.GrpcMockExtension
server -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.grpcmock.junit5.GrpcMockExtension
afterAll, afterEach, beforeAll, builder, getInstance, getPort
-
Constructor Details
-
InProcessGrpcMockExtension
public InProcessGrpcMockExtension()
-
-
Method Details
-
logServerStarted
protected void logServerStarted()- Overrides:
logServerStartedin classGrpcMockExtension
-
getInProcessName
-