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 for entity name validation #2810

Open
Coduz opened this issue Jan 8, 2020 · 0 comments
Open

Test for entity name validation #2810

Coduz opened this issue Jan 8, 2020 · 0 comments
Assignees
Labels
Test Test related stuff. It's a dirty job, but someone needs to do that!

Comments

@Coduz
Copy link
Contributor

Coduz commented Jan 8, 2020

Is your feature request related to a problem? Please describe.
Add unit test for PR #2796

Describe the solution you'd like
Add test on validation for the following entities:

Tag.name
Group.name
Role.name
Trigger.name
TriggerDefinition.name
Job.name
JobStepDefinition.name
JobStep.name

For both create and update (where available).

Test also utility methods of argument validator

  • ArgumentValidator.validateEntityName(@Nullable String name, @NotNull String argumentName)
  • ArgumentValidator.validateEntityName(@Nullable String name, @Nullable Integer minLength, @Nullable Integer maxLength, @NotNull String argumentName)

Describe alternatives you've considered
None

Additional context
None

@Coduz Coduz added the Test Test related stuff. It's a dirty job, but someone needs to do that! label Jan 8, 2020
@Coduz Coduz self-assigned this Jan 8, 2020
@Coduz Coduz moved this to To Do in Eclipse Kapua Backlog Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Test Test related stuff. It's a dirty job, but someone needs to do that!
Projects
None yet
Development

No branches or pull requests

1 participant