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

Test: add UT for RegisterTMRequest #1575

Merged
merged 8 commits into from
Sep 5, 2019
Merged

Conversation

linqiuping
Copy link
Contributor

@linqiuping linqiuping commented Sep 2, 2019

Ⅰ. Describe what this PR did

add testcase for RegisterTMReques

Ⅱ. Does this pull request fix one issue?

no

Ⅲ. Why don't you add test cases (unit test/integration test)?

add a unit test case

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

The type Register tm request test. test tostring

@codecov-io
Copy link

codecov-io commented Sep 2, 2019

Codecov Report

Merging #1575 into develop will increase coverage by 0.08%.
The diff coverage is n/a.

Impacted file tree graph

@@              Coverage Diff              @@
##             develop    #1575      +/-   ##
=============================================
+ Coverage      46.35%   46.44%   +0.08%     
- Complexity      1690     1696       +6     
=============================================
  Files            348      348              
  Lines          12723    12723              
  Branches        1588     1588              
=============================================
+ Hits            5898     5909      +11     
+ Misses          6186     6175      -11     
  Partials         639      639
Impacted Files Coverage Δ Complexity Δ
...o/seata/core/protocol/AbstractIdentifyRequest.java 50% <0%> (+27.27%) 3% <0%> (+3%) ⬆️
...java/io/seata/core/protocol/RegisterTMRequest.java 62.5% <0%> (+62.5%) 3% <0%> (+3%) ⬆️

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 9393ea6...56a3e77. Read the comment docs.

/**
* Test to string.
* @throws Exception the exception
* @author linqiuping
Copy link
Member

Choose a reason for hiding this comment

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

author move above class

@slievrly slievrly changed the title add testcase for RegisterTMReques Test: add UT for RegisterTMReques Sep 2, 2019
@slievrly slievrly changed the title Test: add UT for RegisterTMReques Test: add UT for RegisterTMRequest Sep 2, 2019
/**
* The type Register tm request test.
* @author linqiuping
* @since 2019/9/2
Copy link
Member

Choose a reason for hiding this comment

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

remove @since@since is generally used after which version.

something wrong with your java doc, after class or method comment should have an empty line and no empty line after the end of the overall content.

*/
@Test
public void testToString() throws Exception {

Copy link
Member

Choose a reason for hiding this comment

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

remove empty line.

Copy link
Member

@slievrly slievrly left a comment

Choose a reason for hiding this comment

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

LGTM, the test preferably contains all the public methods of this class.

Copy link
Member

@xingfudeshi xingfudeshi left a comment

Choose a reason for hiding this comment

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

LGTM.

@slievrly slievrly merged commit f99fc51 into apache:develop Sep 5, 2019
@wangliang181230 wangliang181230 added this to the 0.8.1 milestone Aug 9, 2021
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.

None yet

5 participants