Skip to content

test: add first coverage for create consumer group DTO - #3926

Open
yyqdbngt wants to merge 1 commit into
apache:rocketmq-studiofrom
yyqdbngt:codex/yy-add-create-cg-dto-tests
Open

test: add first coverage for create consumer group DTO#3926
yyqdbngt wants to merge 1 commit into
apache:rocketmq-studiofrom
yyqdbngt:codex/yy-add-create-cg-dto-tests

Conversation

@yyqdbngt

@yyqdbngt yyqdbngt commented Sep 6, 2026

Copy link
Copy Markdown

Motivation

The CreateConsumerGroupDTO used by the consumer group form had no unit coverage for its validation rules or VO conversion. This PR adds the first four cases.

Changes

  • A missing name is rejected.
  • Negative retry/delay counts are rejected with their zero-or-positive messages.
  • A valid request passes validation.
  • toConsumerGroupVO leaves counts at their defaults when null and applies them when set.

Verification

  • mvn -B test -Dtest=CreateConsumerGroupDTOTest: 4/4 passed, BUILD SUCCESS

@RockteMQ-AI RockteMQ-AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM. Test coverage improvement.

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.

3 participants