Skip to content

enhance org.apache.dubbo.common.concurrent.CompletableFutureTaskTest#testCustomExecutor #2899

@beiwei30

Description

@beiwei30

org.apache.dubbo.common.concurrent.CompletableFutureTaskTest#testCustomExecutor need to enhance. Recently Traivs CI reports the following error:

org.apache.dubbo.common.logger.slf4j.Slf4jLoggerTest
testLocationAwareLogger(org.apache.dubbo.common.logger.slf4j.Slf4jLoggerTest)  Time elapsed: 0.251 sec  <<< ERROR!
org.mockito.exceptions.misusing.UnfinishedVerificationException: 

Missing method call for verify(mock) here:
-> at org.apache.dubbo.common.concurrent.CompletableFutureTaskTest.testCustomExecutor(CompletableFutureTaskTest.java:95)

Example of correct verification:
    verify(mock).doSomething()

Also, this error might show up because you verify either of: final/private/equals()/hashCode() methods.
Those methods *cannot* be stubbed/verified.
Mocking methods declared on non-public parent classes is not supported.

	at org.apache.dubbo.common.logger.slf4j.Slf4jLoggerTest.testLocationAwareLogger(Slf4jLoggerTest.java:34)

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedEverything needs help from contributors

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions