Skip to content

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

Closed

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)

Activity

  1. added
    help wanted
    on Dec 6, 2018
  2. beiwei30 commented on Dec 7, 2018

    @beiwei30
    MemberAuthor

    @biyuhao will be on this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions