{"action":"opened","issue":{"url":"https://api.github.com/repos/codeborne/selenide/issues/302","repository_url":"https://api.github.com/repos/codeborne/selenide","labels_url":"https://api.github.com/repos/codeborne/selenide/issues/302/labels{/name}","comments_url":"https://api.github.com/repos/codeborne/selenide/issues/302/comments","events_url":"https://api.github.com/repos/codeborne/selenide/issues/302/events","html_url":"https://github.com/codeborne/selenide/issues/302","id":138771729,"number":302,"title":"Selenide must throw error if soft assert is used without annotation","user":{"login":"asolntsev","id":279773,"avatar_url":"https://avatars.githubusercontent.com/u/279773?v=3","gravatar_id":"","url":"https://api.github.com/users/asolntsev","html_url":"https://github.com/asolntsev","followers_url":"https://api.github.com/users/asolntsev/followers","following_url":"https://api.github.com/users/asolntsev/following{/other_user}","gists_url":"https://api.github.com/users/asolntsev/gists{/gist_id}","starred_url":"https://api.github.com/users/asolntsev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asolntsev/subscriptions","organizations_url":"https://api.github.com/users/asolntsev/orgs","repos_url":"https://api.github.com/users/asolntsev/repos","events_url":"https://api.github.com/users/asolntsev/events{/privacy}","received_events_url":"https://api.github.com/users/asolntsev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-06T09:06:13Z","updated_at":"2016-03-06T09:06:13Z","closed_at":null,"body":"For example, this test doesn't fail:\r\n\r\n```java\r\n@test(description = \"test\")\r\npublic void test() throws Exception{\r\n    System.out.println(\"Test started\");\r\n    try {\r\n        Configuration.assertionMode = Configuration.AssertionMode.SOFT;\r\n        $\"#record_text_area\").shouldHave(Condition.value(\"texts is changed!\"));\r\n        $\"#record_text_area\").shouldHave(Condition.value(\"users is changed!\"));\r\n    } catch (Exception e) {\r\n        throw e;\r\n    } finally {\r\n        Configuration.assertionMode = Configuration.AssertionMode.STRICT;\r\n        System.out.println(\"Test finished\");\r\n    }\r\n}\r\n```\r\n\r\nBut it should. See Selenide report:\r\n```\r\nTest started\r\n+--------------------+----------------------------------------------------------------------+----------+----------+\r\n|Element             |Subject                                                               |Status    |ms.       |\r\n+--------------------+----------------------------------------------------------------------+----------+----------+\r\n|#record_text_area   |should have(value 'texts is changed!')                                |FAIL      |4092      |\r\n|#record_text_area   |should have(value 'users is changed!')                                |PASS      |28        |\r\n+--------------------+----------------------------------------------------------------------+----------+----------+\r\nTest finished\r\n```\r\n\r\nThe problem is that annotation/listener is not added to the test (SoftAssert listener)."}}