assertj / assertj/assertj

New Feature: to have ability to ignore all assert when expected value is null

Open
#971 27 comments 1 reaction 0 assignees View on GitHub
status: pending investigation
Dominant language
Java
Stars
2.8k
Forks
788
Avg merge
14h 57m
Merged PRs (30d)
36

Description

#### Summary
to have ability to ignore all assert when expected value is null.

#### Example
Let's call the new method "ignoreAssertWhenExpectedIsNull"

```java
assertThat("Hello World!").ignoreAssertWhenExpectedIsNull().isEqualTo(null); // will pass
```

#### Further more
If go further, we could have a method as ignoreAssertWhen(IgnoreType ignoreType)

Above would be

```java
assertThat("Hello World!").ignoreAssertWhen(IgnoreType.ExpectedIsNull).isEqualTo(null); // will pass
```
IgnoreType could contains

- ExpectedIsNull
- ActualIsNull
- EitherIsNull

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.