{"action":"opened","issue":{"url":"https://api.github.com/repos/selesy/test/issues/20","labels_url":"https://api.github.com/repos/selesy/test/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/selesy/test/issues/20/comments","events_url":"https://api.github.com/repos/selesy/test/issues/20/events","html_url":"https://github.com/selesy/test/issues/20","id":57552963,"number":20,"title":"assert does not match the correct result code","user":{"login":"smoyer64","id":328333,"avatar_url":"https://avatars.githubusercontent.com/u/328333?v=3","gravatar_id":"","url":"https://api.github.com/users/smoyer64","html_url":"https://github.com/smoyer64","followers_url":"https://api.github.com/users/smoyer64/followers","following_url":"https://api.github.com/users/smoyer64/following{/other_user}","gists_url":"https://api.github.com/users/smoyer64/gists{/gist_id}","starred_url":"https://api.github.com/users/smoyer64/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smoyer64/subscriptions","organizations_url":"https://api.github.com/users/smoyer64/orgs","repos_url":"https://api.github.com/users/smoyer64/repos","events_url":"https://api.github.com/users/smoyer64/events{/privacy}","received_events_url":"https://api.github.com/users/smoyer64/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-13T03:00:39Z","updated_at":"2015-02-13T03:00:39Z","closed_at":null,"body":"I have a very simple test that is failing, maybe you can try it and reproduce the error in your pc?\r\nthis is the test:\r\n\r\n@RunWith(HttpJUnitRunner.class)\r\npublic class TestMy{\r\n    @Rule\r\n    public com.eclipsesource.restfuse.Destination destination = this.getDestination()\r\n\r\n    @Context\r\n    private Response response;\r\n\r\n    @HttpTest(\r\n            method = Method.POST,\r\n            path = \"/create\",\r\n            content = USER1,\r\n            order = 200\r\n    )\r\n    public void testRegistrationUser1()\r\n    {\r\n        assertCreated(response);\r\n    }\r\n\r\n    @HttpTest(\r\n            method = Method.POST,\r\n            path = \"/create\",\r\n            content = USER1,\r\n            order = 210\r\n    )\r\n    public void testRegistrationUser1Again()\r\n    {\r\n        assertConflict(response);\r\n    }\r\n\r\n-I am running this in jetty.\r\n-in the second test I get a 409 back but the assertion fails.\r\n-I tried this same thing (creating a user and then trying to create it again) with apache's httpclient and indeed I get a 409 back.\r\n\r\nso it seems in some cases even though you get the correct code back the framework doesn't direct it through the right path.\r\nregards."}}