Skip to content

Comments

Improve JsonArrayAsListTest#testContains#2982

Merged
eamonnmcmanus merged 1 commit intogoogle:mainfrom
Marcono1234:marcono1234/testContains
Feb 16, 2026
Merged

Improve JsonArrayAsListTest#testContains#2982
eamonnmcmanus merged 1 commit intogoogle:mainfrom
Marcono1234:marcono1234/testContains

Conversation

@Marcono1234
Copy link
Contributor

Follow-up for #2981, which removed assertThat(list).doesNotContain(null)

Reverts some previous changes to this method which accidentally converted the assertions to assertThat(...).contains(...).

Reverts some previous changes to this method which accidentally
converted the assertions to `assertThat(...).contains(...)`.
@Marcono1234 Marcono1234 force-pushed the marcono1234/testContains branch from 6963b2b to 87934d0 Compare February 15, 2026 20:07
@eamonnmcmanus
Copy link
Member

Makes sense. I think in practice assertThat(list).contains(foo) will in fact call list.contains(foo), but it's better to be explicit.

@eamonnmcmanus eamonnmcmanus merged commit a8e6c96 into google:main Feb 16, 2026
16 checks passed
@Marcono1234 Marcono1234 deleted the marcono1234/testContains branch February 20, 2026 16:08
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.

2 participants