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

item(TCOMP-2743): Add missing httpclient validator unit test #903

Merged
merged 11 commits into from
Jun 28, 2024

Conversation

yyin-talend
Copy link
Collaborator

@yyin-talend yyin-talend commented Jun 25, 2024

@yyin-talend yyin-talend requested a review from undx June 25, 2024 06:14

This comment has been minimized.

undx
undx previously approved these changes Jun 25, 2024
Copy link
Member

@undx undx left a comment

Choose a reason for hiding this comment

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

LGTM
PLease look at sonar and fix issue.

This comment has been minimized.

undx
undx previously approved these changes Jun 25, 2024

This comment has been minimized.

Copy link
Contributor

@acatoire acatoire left a comment

Choose a reason for hiding this comment

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

Small remark on validateClassMethodMissingAnnotation and WrongClient

This comment has been minimized.

Copy link
Contributor

@ypiel-talend ypiel-talend left a comment

Choose a reason for hiding this comment

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

some comments

This comment has been minimized.

4 similar comments

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

@acatoire
Copy link
Contributor

Could we add a test with:

    interface WrongClientNoMethodRequest extends HttpClient {

        // It misses @Request
        String queryA(String ok);

        // It misses @Request
        String queryB(String ok);
    }

Copy link
Contributor

@acatoire acatoire left a comment

Choose a reason for hiding this comment

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

Small renaming comments

String queryB(String ok);
}

interface WithOtherAnnotationClient extends HttpClient {
Copy link
Contributor

Choose a reason for hiding this comment

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

Renaming for clear purpose

Suggested change
interface WithOtherAnnotationClient extends HttpClient {
interface WrongClientUsingOneWrongAnnotation

This comment has been minimized.

Copy link

sonar-eks bot commented Jun 28, 2024

Passed

Analysis Details

0 Issues

  • Bug 0 Bugs
  • Vulnerability 0 Vulnerabilities
  • Code Smell 0 Code Smells

Coverage and Duplications

  • Coverage 100.00% Coverage (54.30% Estimated after merge)
  • Duplications 0.00% Duplicated Code (1.30% Estimated after merge)

Project ID: org.talend.sdk.component:component-runtime

View in SonarQube

@yyin-talend yyin-talend merged commit 5a36dfe into master Jun 28, 2024
6 checks passed
@yyin-talend yyin-talend deleted the yyin/TCOMP-2743-AddHttpValidatorJunit branch June 28, 2024 12:05
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.

4 participants