Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DUBBO-3713]: org.apache.dubbo.rpc.support.MockInvoker#getInterface should not return null #3716

Merged
merged 1 commit into from
Apr 29, 2019

Conversation

beiwei30
Copy link
Member

What is the purpose of the change

fix issue #3713

Brief changelog

XXXXX

Verifying this change

XXXXX

Follow this checklist to help us incorporate your contribution quickly and easily:

  • Make sure there is a GITHUB_issue field for the change (usually before you start working on it). Trivial changes like typos do not require a GITHUB issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
  • Format the pull request title like [Dubbo-XXX] Fix UnknownException when host config not exist #XXX. Each commit in the pull request should have a meaningful subject line and body.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Write necessary unit-test to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add integration-test in test module.
  • Run mvn clean install -DskipTests=false & mvn clean test-compile failsafe:integration-test to make sure unit-test and integration-test pass.
  • If this contribution is large, please follow the Software Donation Guide.

@codecov-io
Copy link

Codecov Report

Merging #3716 into master will increase coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #3716      +/-   ##
============================================
+ Coverage     63.55%   63.57%   +0.02%     
  Complexity       71       71              
============================================
  Files           703      703              
  Lines         31001    31002       +1     
  Branches       5022     5022              
============================================
+ Hits          19702    19711       +9     
+ Misses         9027     9019       -8     
  Partials       2272     2272
Impacted Files Coverage Δ Complexity Δ
...pc/cluster/support/wrapper/MockClusterInvoker.java 73.21% <100%> (ø) 0 <0> (ø) ⬇️
...ava/org/apache/dubbo/rpc/support/MockProtocol.java 50% <100%> (ø) 0 <0> (ø) ⬇️
...java/org/apache/dubbo/rpc/support/MockInvoker.java 75% <100%> (+0.23%) 0 <0> (ø) ⬇️
...dubbo/remoting/exchange/support/DefaultFuture.java 71.42% <0%> (-2.05%) 0% <0%> (ø)
...he/dubbo/registry/multicast/MulticastRegistry.java 67.87% <0%> (-1.81%) 0% <0%> (ø)
.../dubbo/remoting/transport/netty4/NettyChannel.java 65.88% <0%> (+1.17%) 0% <0%> (ø) ⬇️
...exchange/support/header/HeaderExchangeHandler.java 62.79% <0%> (+2.32%) 0% <0%> (ø) ⬇️
.../org/apache/dubbo/remoting/ExecutionException.java 21.05% <0%> (+5.26%) 0% <0%> (ø) ⬇️
...ng/exchange/support/header/HeartbeatTimerTask.java 78.94% <0%> (+5.26%) 0% <0%> (ø) ⬇️
...ng/transport/dispatcher/all/AllChannelHandler.java 57.14% <0%> (+5.71%) 0% <0%> (ø) ⬇️
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6e4ff91...264ac9f. Read the comment docs.

Copy link

@Moriadry-zz Moriadry-zz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The construction should be the same with org.apache.dubbo.rpc.cluster.router.MockInvoker.class

Copy link
Contributor

@cvictory cvictory left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM,
getInterface returning null is incorrect and add interface parameter in MockInvoker to fix the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants