Skip to content
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

Using newArrayList for withExposedPorts method in order to allow addExposedPort later #453

Merged
merged 1 commit into from
Sep 16, 2017

Conversation

orange-buffalo
Copy link
Contributor

Reproducer and fix for #451

@Test
public void addExposedPortAfterWithExposedPortsTest() {
redis.addExposedPort(8987);
assertThat("Both ports should be exposed", redis.getExposedPorts().size(), equalTo(2));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I would love to use containsInAnyOrder instead of this series of assertions, but it is not available in dependencies and I don't feel like I can add it just for this case.

@rnorth
Copy link
Member

rnorth commented Sep 16, 2017

This looks sensible to me. Thank you for contributing!

@rnorth rnorth merged commit ecb3286 into testcontainers:master Sep 16, 2017
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.

None yet

2 participants