{"action":"closed","issue":{"url":"https://api.github.com/repos/jamesdbloom/mockserver/issues/303","repository_url":"https://api.github.com/repos/jamesdbloom/mockserver","labels_url":"https://api.github.com/repos/jamesdbloom/mockserver/issues/303/labels{/name}","comments_url":"https://api.github.com/repos/jamesdbloom/mockserver/issues/303/comments","events_url":"https://api.github.com/repos/jamesdbloom/mockserver/issues/303/events","html_url":"https://github.com/jamesdbloom/mockserver/issues/303","id":195268414,"number":303,"title":"request() could not be resolved in UNIT test TestNG","user":{"login":"leccyril","id":3234598,"avatar_url":"https://avatars.githubusercontent.com/u/3234598?v=3","gravatar_id":"","url":"https://api.github.com/users/leccyril","html_url":"https://github.com/leccyril","followers_url":"https://api.github.com/users/leccyril/followers","following_url":"https://api.github.com/users/leccyril/following{/other_user}","gists_url":"https://api.github.com/users/leccyril/gists{/gist_id}","starred_url":"https://api.github.com/users/leccyril/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leccyril/subscriptions","organizations_url":"https://api.github.com/users/leccyril/orgs","repos_url":"https://api.github.com/users/leccyril/repos","events_url":"https://api.github.com/users/leccyril/events{/privacy}","received_events_url":"https://api.github.com/users/leccyril/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-13T14:34:02Z","updated_at":"2016-12-13T14:40:42Z","closed_at":"2016-12-13T14:40:42Z","body":"In a IT test i have this code 👍 \r\nnew MockServerClient(\"localhost\", 1080)\r\n\t\t\t        .when(\r\n\t\t\t                request()\r\n\t\t\t                        .withMethod(\"POST\")\r\n\t\t\t                        .withPath(\"/employees\")\r\n\t\t\t                        .withBody(\"{username: 'foo', password: 'bar'}\")\r\n\t\t\t        )\r\n\t\t\t        .respond(\r\n\t\t\t                response()\r\n\t\t\t                        .withStatusCode(201)\r\n\t\t\t                        .withCookie(\r\n\t\t\t                                \"sessionId\", \"2By8LOhBmaW5nZXJwcmludCIlMDAzMW\"\r\n\t\t\t                        )\r\n\t\t\t                        .withHeader(\r\n\t\t\t                                \"Location\", \"/api/employees/2615?at=2016-12-13\"\r\n\t\t\t                        )\r\n\t\t\t        );\r\n\r\nbut request() and respons() could not be resolved, i upload the mockserver examples and i have same problem/issue what i have to do to eclipse can compile ?"}}
{"actor":{"display_login":"leccyril"}}