Skip to content

MicroProfile @RestClient diagnostics rules don't check superclasses and tests #503

@mantiscorp

Description

@mantiscorp

This code causes a warning "The Rest Client object should have the @Inject annotation to be injected as a CDI bean"

@InjectMock
@RestClient
MyRestClientInterface restClient;

even thought it has @InjectMock.

This code causes a warning "The Rest Client object should have the @Inject and @restclient annotations to be injected as a CDI bean."

public abstract class MyAbstractClass implements MyInterface {
    private final MyRestClientInterface restClient;

    protected MyAbstractClass (MyRestClientInterface restClient) {

even thought it's an abstract class with a constructor initialization

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions