Skip to content

Startables#deepStart with varargs#3261

Merged
rnorth merged 1 commit intotestcontainers:masterfrom
jochenchrist:master
Dec 12, 2020
Merged

Startables#deepStart with varargs#3261
rnorth merged 1 commit intotestcontainers:masterfrom
jochenchrist:master

Conversation

@jochenchrist
Copy link
Copy Markdown
Contributor

Support varargs in Startables to start multiple containers in parallel, esp. for singleton pattern.

// instead of     
List<Startable> startables = List.of(mongoDBContainer, kafkaContainer, mockServerContainer);
Startables.deepStart(startables).get();

// this more readable
Startables.deepStart(mongoDBContainer, kafkaContainer, mockServerContainer).get();

Copy link
Copy Markdown
Member

@rnorth rnorth left a comment

Choose a reason for hiding this comment

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

This seems reasonable to me - sorry it's taken so long to look at, and thanks for the contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants