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

Changed the definition from interface to class #562

Closed
wants to merge 3 commits into from

Conversation

keerthikumarn
Copy link

@keerthikumarn keerthikumarn commented Mar 27, 2023

@codeowners

PR Branch
#(#562)

since interfaces are primarily used for defining APIs and contracts. In this case, using a class with static final fields is a good alternative.

Checklist:

  • Unit tests added

  • Integration tests added

  • Test names are meaningful

  • Feature manually tested

  • Branch build passed

  • No 'package.*' in the imports

  • Relevant Wiki page updated with clear instruction for the end user

    • Not applicable. This was only a refactor change, no functional or behaviour changes were introduced
  • Http test added to http-testing module(if applicable) ?

    • Not applicable. The changes did not affect HTTP automation flow
  • Kafka test added to kafka-testing module(if applicable) ?

    • Not applicable. The changes did not affect Kafka automation flow

@keerthikumarn
Copy link
Author

can some please review this PR asap and provide any comments if something to be corrected???

@nirmalchandra
Copy link
Collaborator

can some please review this PR asap and provide any comments if something to be corrected???

CI build in-progress.
https://github.com/authorjapps/zerocode/pull/562/checks

Once done, we should be able to merge to master.

Just checking, how does this change help the end users i.e. a SDET or a DEV ?

@keerthikumarn
Copy link
Author

keerthikumarn commented Jan 19, 2024 via email

@a1shadows
Copy link
Collaborator

This is just a small design change. There is no point in having an interface without defining any apis which in turn is the violation of interface definition.

I think it is a subjective opinion to not want to use interfaces for Constants. Do you have anything more concrete in mind for why you think interfaces shouldn't be used for Constants? I would argue the shorter syntax for declaring constants is actually a plus here

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