{"action":"opened","issue":{"url":"https://api.github.com/repos/joel-costigliola/assertj-core/issues/653","repository_url":"https://api.github.com/repos/joel-costigliola/assertj-core","labels_url":"https://api.github.com/repos/joel-costigliola/assertj-core/issues/653/labels{/name}","comments_url":"https://api.github.com/repos/joel-costigliola/assertj-core/issues/653/comments","events_url":"https://api.github.com/repos/joel-costigliola/assertj-core/issues/653/events","html_url":"https://github.com/joel-costigliola/assertj-core/issues/653","id":152045451,"number":653,"title":"Allow to check result of last soft assertion","user":{"login":"fduminy","id":143904,"avatar_url":"https://avatars.githubusercontent.com/u/143904?v=3","gravatar_id":"","url":"https://api.github.com/users/fduminy","html_url":"https://github.com/fduminy","followers_url":"https://api.github.com/users/fduminy/followers","following_url":"https://api.github.com/users/fduminy/following{/other_user}","gists_url":"https://api.github.com/users/fduminy/gists{/gist_id}","starred_url":"https://api.github.com/users/fduminy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fduminy/subscriptions","organizations_url":"https://api.github.com/users/fduminy/orgs","repos_url":"https://api.github.com/users/fduminy/repos","events_url":"https://api.github.com/users/fduminy/events{/privacy}","received_events_url":"https://api.github.com/users/fduminy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-30T18:36:12Z","updated_at":"2016-04-30T18:36:12Z","closed_at":null,"body":"#### Summary\r\nI would like to be able to check the result of the last soft assertion.\r\n\r\n#### Real life use case or example\r\n```java\r\nPerson person = ...\r\nSoftAssertion soft = new SoftAssertions();\r\nif (soft.assertThat(person.getAddress()).isNotNull().wasSuccess()) {\r\n    soft.assertThat(person.getAddress().getStreet()).isNotNull();\r\n}\r\n```\r\n\r\nActual workaround is :\r\n```java\r\nsoft.assertThat(person.getAddress()).isNotNull();\r\nif (person.getAddress() != null) {\r\n    soft.assertThat(person.getAddress().getStreet()).isNotNull();\r\n}\r\n```\r\nbut for more complex assertion, I must also write the equivalent boolean expression for the ```if``` statement.\r\n\r\nThe implementation is easy and need to set a flag to ```false``` at begin of ```ErrorCollector.intercept``` and, on failure, set the flag to ```true```.\r\n\r\n#### Java 8 specific ?\r\nNO \r\n"}}