Skip to content

Rewrite server test assertions. - #305

Merged
kqarryzada merged 1 commit into
masterfrom
DS-51690-server-test-cleanup
Jul 17, 2026
Merged

Rewrite server test assertions.#305
kqarryzada merged 1 commit into
masterfrom
DS-51690-server-test-cleanup

Conversation

@kqarryzada

Copy link
Copy Markdown
Collaborator

The server Endpoint unit tests are sometimes used as a reference for how SCIM clients should issue requests, and also represents how some Jersey configurations may be set. This commit updates these tests to use AssertJ for better legibility, as well as other general cleanup.

Reviewer: dougbulkley
Reviewer: vyhhuang

JiraIssue: DS-51690

The server Endpoint unit tests are sometimes used as a reference for how
SCIM clients should issue requests, and also represents how some Jersey
configurations may be set. This commit updates these tests to use
AssertJ for better legibility, as well as other general cleanup.

Reviewer: dougbulkley
Reviewer: vyhhuang

JiraIssue: DS-51690
@kqarryzada kqarryzada self-assigned this Jul 17, 2026
meta.setResourceType(resourceType.getName());
}

private <T> boolean contains(Iterable<T> list, T resource)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Thanks to methods like containsExactly(), we no longer need this.

@vyhhuang vyhhuang left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

These changes look good to me.

@kqarryzada
kqarryzada merged commit 01330e1 into master Jul 17, 2026
6 checks passed
@kqarryzada
kqarryzada deleted the DS-51690-server-test-cleanup branch July 17, 2026 21:37
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