Created
November 25, 2018 12:51
-
-
Save hadilq/d094951f4cf4b378968471dedc5ce7b0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun exampleMethod(foo: Boolean, bar: Boolean, ..., baz: Any?) { | |
assumeTrue("Message of AssertionError when this assumption is not satisfied", foo) | |
?.assumeFalse("The same as the above message", bar) | |
... | |
?.assumeNotNull("An other message", baz) { | |
// If all the above assumptions get satisfied then this block will be running. | |
// Else an Assertion log will be triggered on the proper Appenders. | |
} | |
// Add more assumptions for the next block | |
?.assumeEquals("A message", foo, bar) { | |
// This block will be running if all the above assumptions are true. | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment