question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add assumptions methods to be in sync with assertions methods

See original GitHub issue

Summary

Sync assertThatXxx methods with assumptions assumeThatXxx.

Missing ones

  • assumeThatCollection
  • assumeThatIterable
  • assumeThatIterator
  • assumeThatList
  • assumeThatPath
  • assumeThatPredicate
  • assumeThatStream
  • assumeThatExceptionOfType
  • assumeThatException
  • assumeThatRuntimeException
  • assumeThatNullPointerException
  • assumeThatIllegalArgumentException
  • assumeThatIOException
  • assumeThatIndexOutOfBoundsException
  • assumeThatReflectiveOperationException"

Refactor Assertions_sync_with_BDDAssumptions_Test to be parameterized as Assertions_sync_with_BDDAssertions_WithAssertions_and_soft_assertions_variants_Test.

Don’t add assertThatComparable it is going to be done as part of another ongoing issue.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
scordiocommented, Apr 9, 2022

@HDreamer2 feel free to raise a PR! In case tests are missing, we’ll give you feedback during the review.

1reaction
HDreamer2commented, Apr 9, 2022

@joel-costigliola Hi, I’ve done the whole work. Should I write extra tests or make a PR now? This is my first contribution so I have no idea whether it is enough.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add assumptions methods to be in sync with assertions methods
Sync assertThatXxx methods with assumptions assumeThatXxx . Missing ones. assumeThatCollection; assumeThatIterable; assumeThatIterator ...
Read more >
Programming With Assertions - Oracle Help Center
An assertion is a statement in the Java programming language that enables you to test your assumptions about your program. For example, if...
Read more >
AssertJ - fluent assertions java library - GitHub Pages
AssertJ Core 3.x includes all AssertJ Core 2.x features and adds Java 8 specific ones (like exception ... Sync assumptions and assertions methods....
Read more >
Assertions Are Pessimistic, Assumptions Are Optimistic
We assert a condition when we believe it to be true in every non-buggy execution of our program, but we want to be...
Read more >
JUnit 5 Basics 20 - Conditional executions and assumptions
Understand how to run tests selectively using conditional assumptions - based on exetrnal factors. Also learn about the JUnit 5 assertions ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found