Skip to content

Status code range checking#32

Closed
matjansen wants to merge 5 commits intoDKE-Data:developfrom
matjansen:develop
Closed

Status code range checking#32
matjansen wants to merge 5 commits intoDKE-Data:developfrom
matjansen:develop

Conversation

@matjansen
Copy link
Contributor

This hopefully is a better solution to #20

@saschadoemer
Copy link
Member

@matjansen Please resolve your conflicts first. Thx.

Copy link
Member

@Frank-Wiebeler Frank-Wiebeler left a comment

Choose a reason for hiding this comment

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

Technically, that works, thank you for the contribution. :)
But wouldn't it be better to extend the ResponseValidator with a check for that list? .

Could you create an assertResponseStatusIsInRange-Method instead? This way, we would not have so much duplicated code and directly throw the error instead of making a function throw the error by knowing, that it will fail.

@Frank-Wiebeler
Copy link
Member

As we have a new Pull Request for this, I'll close this one.

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