{"action":"created","issue":{"url":"https://api.github.com/repos/joel-costigliola/assertj-core/issues/530","labels_url":"https://api.github.com/repos/joel-costigliola/assertj-core/issues/530/labels{/name}","comments_url":"https://api.github.com/repos/joel-costigliola/assertj-core/issues/530/comments","events_url":"https://api.github.com/repos/joel-costigliola/assertj-core/issues/530/events","html_url":"https://github.com/joel-costigliola/assertj-core/pull/530","id":120200747,"number":530,"title":"make hasBeenThrown public accessible","user":{"login":"qoomon","id":3963394,"avatar_url":"https://avatars.githubusercontent.com/u/3963394?v=3","gravatar_id":"","url":"https://api.github.com/users/qoomon","html_url":"https://github.com/qoomon","followers_url":"https://api.github.com/users/qoomon/followers","following_url":"https://api.github.com/users/qoomon/following{/other_user}","gists_url":"https://api.github.com/users/qoomon/gists{/gist_id}","starred_url":"https://api.github.com/users/qoomon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qoomon/subscriptions","organizations_url":"https://api.github.com/users/qoomon/orgs","repos_url":"https://api.github.com/users/qoomon/repos","events_url":"https://api.github.com/users/qoomon/events{/privacy}","received_events_url":"https://api.github.com/users/qoomon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-03T15:45:33Z","updated_at":"2015-12-03T22:00:10Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/joel-costigliola/assertj-core/pulls/530","html_url":"https://github.com/joel-costigliola/assertj-core/pull/530","diff_url":"https://github.com/joel-costigliola/assertj-core/pull/530.diff","patch_url":"https://github.com/joel-costigliola/assertj-core/pull/530.patch"},"body":"can be public without a doubt. I need this to have a test code like this:\r\n\r\n   @Test\r\n    public void expectExceptionLambda() throws Exception {\r\n        // give\r\n        Thrower thrower = new Thrower();\r\n\r\n        // when\r\n        Throwable exception = catchThrowable(() -> thrower.throwNullPointerException(\"boom\"));\r\n\r\n        // then\r\n        assertThat(exception).hasBeenThrown().hasMessage(\"boom\");\r\n    }"},"comment":{"url":"https://api.github.com/repos/joel-costigliola/assertj-core/issues/comments/161798335","html_url":"https://github.com/joel-costigliola/assertj-core/pull/530#issuecomment-161798335","issue_url":"https://api.github.com/repos/joel-costigliola/assertj-core/issues/530","id":161798335,"user":{"login":"joel-costigliola","id":382613,"avatar_url":"https://avatars.githubusercontent.com/u/382613?v=3","gravatar_id":"","url":"https://api.github.com/users/joel-costigliola","html_url":"https://github.com/joel-costigliola","followers_url":"https://api.github.com/users/joel-costigliola/followers","following_url":"https://api.github.com/users/joel-costigliola/following{/other_user}","gists_url":"https://api.github.com/users/joel-costigliola/gists{/gist_id}","starred_url":"https://api.github.com/users/joel-costigliola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joel-costigliola/subscriptions","organizations_url":"https://api.github.com/users/joel-costigliola/orgs","repos_url":"https://api.github.com/users/joel-costigliola/repos","events_url":"https://api.github.com/users/joel-costigliola/events{/privacy}","received_events_url":"https://api.github.com/users/joel-costigliola/received_events","type":"User","site_admin":false},"created_at":"2015-12-03T22:00:10Z","updated_at":"2015-12-03T22:00:10Z","body":"You actually don't need to call `hasBeenThrown()` at all since `hasMessage` checks for `exception` not to be null.\r\nThe only difference would be the error message. "}}