Skip to content

What are the use cases for Assumptions.assumingThat(...)? #2553

Answered by sbrannen
Marcono1234 asked this question in Q&A
Discussion options

You must be logged in to vote

Or is it about the intention they convey, indicating that a conditional execution in a test method is intentionally based on the test environment?

Yes, that's what they are for.

They are effectively nothing more than glorified if-statements that serve as a DSL for the reader of the test.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Marcono1234
Comment options

@sbrannen
Comment options

@Marcono1234
Comment options

@sbrannen
Comment options

Answer selected by sbrannen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants