Skip to content

Java generation: allow non-final generation for classes #11193

Closed as not planned
@carojkov

Description

@carojkov

Allow mocking stubs - don't make them final

I'd love to be able to mock stubs

private HelloServiceGrpc.HelloServiceBlockingStub stub;

public void hello(String message) {
    stub.hello(message); <-- I should be able to make a unit test that verifies stub.hello() is called and with the right value.
}

@artnaseef

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions