Skip to content

Instantly share code, notes, and snippets.

@mchmielarz
Created March 11, 2019 22:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mchmielarz/c24804b88118ccf70806683753ce37b5 to your computer and use it in GitHub Desktop.
Save mchmielarz/c24804b88118ccf70806683753ce37b5 to your computer and use it in GitHub Desktop.
LazyAssert capabilities from assertj-vavr v0.1.0
Lazy<Car> newCar = Lazy.of(() -> new Car("Tesla", "Model 3"));
assertThat(newCar).isNotEvaluated();
Car tesla = newCar.get();
assertThat(newCar).isEvaluated();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment