Skip to content

Add test for admin properties #234

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

Merged
merged 2 commits into from
Nov 22, 2022
Merged

Conversation

cbornet
Copy link
Contributor

@cbornet cbornet commented Nov 21, 2022

See #176

Copy link
Collaborator

@onobc onobc left a comment

Choose a reason for hiding this comment

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

@cbornet LGTM - 1 small improvement comment

@cbornet cbornet requested a review from onobc November 22, 2022 08:25
@@ -335,12 +339,14 @@ void producerProperties() {
.containsEntry("batchingMaxMessages", 7).containsEntry("batchingMaxBytes", 8)
.containsEntry("batchingEnabled", false).containsEntry("chunkingEnabled", true)
.hasEntrySatisfying("encryptionKeys",
keys -> assertThat(((Set<String>) keys)).containsExactly("my-key"))
keys -> assertThat(keys).asInstanceOf(InstanceOfAssertFactories.collection(String.class))
Copy link
Collaborator

Choose a reason for hiding this comment

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

This would be a good candidate to create a helper method for this as its in N places. We can do that later though.

Copy link
Collaborator

@onobc onobc left a comment

Choose a reason for hiding this comment

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

LGTM

@onobc onobc merged commit c7fc8fe into spring-projects:main Nov 22, 2022
@cbornet cbornet deleted the admin-props-test branch November 23, 2022 16:45
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