{"action":"created","issue":{"url":"https://api.github.com/repos/jbehave/jbehave-core/issues/79","labels_url":"https://api.github.com/repos/jbehave/jbehave-core/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/jbehave/jbehave-core/issues/79/comments","events_url":"https://api.github.com/repos/jbehave/jbehave-core/issues/79/events","html_url":"https://github.com/jbehave/jbehave-core/pull/79","id":67024747,"number":79,"title":"Writing stories in plain English, with words convertible to boolean","user":{"login":"alb-i986","id":2717169,"avatar_url":"https://avatars.githubusercontent.com/u/2717169?v=3","gravatar_id":"","url":"https://api.github.com/users/alb-i986","html_url":"https://github.com/alb-i986","followers_url":"https://api.github.com/users/alb-i986/followers","following_url":"https://api.github.com/users/alb-i986/following{/other_user}","gists_url":"https://api.github.com/users/alb-i986/gists{/gist_id}","starred_url":"https://api.github.com/users/alb-i986/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alb-i986/subscriptions","organizations_url":"https://api.github.com/users/alb-i986/orgs","repos_url":"https://api.github.com/users/alb-i986/repos","events_url":"https://api.github.com/users/alb-i986/events{/privacy}","received_events_url":"https://api.github.com/users/alb-i986/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-04-08T01:16:02Z","updated_at":"2015-06-08T22:01:57Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jbehave/jbehave-core/pulls/79","html_url":"https://github.com/jbehave/jbehave-core/pull/79","diff_url":"https://github.com/jbehave/jbehave-core/pull/79.diff","patch_url":"https://github.com/jbehave/jbehave-core/pull/79.patch"},"body":"BooleanWord is an enum that allows story writers to write natural prose, while developers can enjoy getting booleans \"for free\".\r\n\r\nQuoting from the javadoc..\r\n\r\nExample of use. Given the following candidate step:\r\n\r\n```\r\n @Given(\"a stock of symbol $symbol $withThreshold a threshold\")\r\n public void aStock(String symbol, BooleanWord withThreshold) {\r\n     stock = new Stock(symbol).withThreshold(withThreshold.toBoolean());\r\n }\r\n``` \r\n\r\n.. it is then possible to write the following scenarios:\r\n\r\n```\r\n Scenario: a stock with threshold\r\n \r\n Given a stock of symbol AAA with a threshold\r\n When ..\r\n Then ..\r\n \r\n Scenario: a stock with no threshold\r\n \r\n Given a stock of symbol AAA without a threshold\r\n When ..\r\n Then ..\r\n```\r\n\r\nPlease note that this depends on #77.\r\n\r\nIt would be nice if we could find an elegant way to internationalise the enum constants.\r\nOne where there is only one enum constant for each boolean word, and the translations are kept in an external file. Any ideas?"},"comment":{"url":"https://api.github.com/repos/jbehave/jbehave-core/issues/comments/110154829","html_url":"https://github.com/jbehave/jbehave-core/pull/79#issuecomment-110154829","issue_url":"https://api.github.com/repos/jbehave/jbehave-core/issues/79","id":110154829,"user":{"login":"maurotalevi","id":251853,"avatar_url":"https://avatars.githubusercontent.com/u/251853?v=3","gravatar_id":"","url":"https://api.github.com/users/maurotalevi","html_url":"https://github.com/maurotalevi","followers_url":"https://api.github.com/users/maurotalevi/followers","following_url":"https://api.github.com/users/maurotalevi/following{/other_user}","gists_url":"https://api.github.com/users/maurotalevi/gists{/gist_id}","starred_url":"https://api.github.com/users/maurotalevi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maurotalevi/subscriptions","organizations_url":"https://api.github.com/users/maurotalevi/orgs","repos_url":"https://api.github.com/users/maurotalevi/repos","events_url":"https://api.github.com/users/maurotalevi/events{/privacy}","received_events_url":"https://api.github.com/users/maurotalevi/received_events","type":"User","site_admin":false},"created_at":"2015-06-08T22:01:56Z","updated_at":"2015-06-08T22:01:56Z","body":"Yes, it was closed by Github because of the branch rename.\n\nNow reopened.    Please comment on \nhttps://jbehave.atlassian.net/browse/JBEHAVE-1074.\n\nOn 08/06/2015 12:45, Alberto Scotto wrote:\n>\n> If this was closed for the same reason as #78 \n> <https://github.com/jbehave/jbehave-core/pull/78>, there must be \n> something wrong: here there is a jira open \n> <https://jbehave.atlassian.net/browse/JBEHAVE-1074>, and the commit \n> messages have the jira number\n>\n> —\n> Reply to this email directly or view it on GitHub \n> <https://github.com/jbehave/jbehave-core/pull/79#issuecomment-109959952>.\n>\n\n"}}