{"action":"created","issue":{"url":"https://api.github.com/repos/jayway/powermock/issues/199","labels_url":"https://api.github.com/repos/jayway/powermock/issues/199/labels{/name}","comments_url":"https://api.github.com/repos/jayway/powermock/issues/199/comments","events_url":"https://api.github.com/repos/jayway/powermock/issues/199/events","html_url":"https://github.com/jayway/powermock/issues/199","id":96883795,"number":199,"title":"Tests are not ran when JUnit 4.7 rule is used","user":{"login":"johanhaleby","id":187029,"avatar_url":"https://avatars.githubusercontent.com/u/187029?v=3","gravatar_id":"","url":"https://api.github.com/users/johanhaleby","html_url":"https://github.com/johanhaleby","followers_url":"https://api.github.com/users/johanhaleby/followers","following_url":"https://api.github.com/users/johanhaleby/following{/other_user}","gists_url":"https://api.github.com/users/johanhaleby/gists{/gist_id}","starred_url":"https://api.github.com/users/johanhaleby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johanhaleby/subscriptions","organizations_url":"https://api.github.com/users/johanhaleby/orgs","repos_url":"https://api.github.com/users/johanhaleby/repos","events_url":"https://api.github.com/users/johanhaleby/events{/privacy}","received_events_url":"https://api.github.com/users/johanhaleby/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jayway/powermock/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/jayway/powermock/labels/imported","name":"imported","color":"FFFFFF"},{"url":"https://api.github.com/repos/jayway/powermock/labels/Milestone-Release1.4","name":"Milestone-Release1.4","color":"FFFFFF"},{"url":"https://api.github.com/repos/jayway/powermock/labels/Priority-Critical","name":"Priority-Critical","color":"FFFFFF"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-07-23T19:01:39Z","updated_at":"2015-07-23T19:02:38Z","closed_at":null,"body":"_From [andrei.i...@gmail.com](https://code.google.com/u/102678131244317362177/) on October 08, 2009 10:54:32_\n\nSteps to reproduce the problem:\r\n1. Create a JUnit test with a @Rule\r\n2. Run the test and observe it executes(the test method only has contains a\r\nSystem.out.println(\"test\") statement\r\n3. add @RunWith(PowerMockRunner.class) and rerun test\r\n\r\nThe expected output is `test`, but instead the console remains blank\r\n\r\nI'm using powermock-1.3 full, junit-4.7 on Win Vista\r\n\r\nLooking at\r\norg.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl,\r\non line 58, rule.apply() is called but the result is unused.\r\n\r\nSuggested solution:\r\n\r\nStatement statement = rule.apply(new Statement() {\r\n    @Override\r\n    public void evaluate() throws Throwable {\r\n            executeTestInSuper(method, testInstance, test);\r\n    }\r\n}, new FrameworkMethod(method), testInstance);\r\nstatement.evaluate();\n\n_Original issue: http://code.google.com/p/powermock/issues/detail?id=179_"},"comment":{"url":"https://api.github.com/repos/jayway/powermock/issues/comments/124212372","html_url":"https://github.com/jayway/powermock/issues/199#issuecomment-124212372","issue_url":"https://api.github.com/repos/jayway/powermock/issues/199","id":124212372,"user":{"login":"johanhaleby","id":187029,"avatar_url":"https://avatars.githubusercontent.com/u/187029?v=3","gravatar_id":"","url":"https://api.github.com/users/johanhaleby","html_url":"https://github.com/johanhaleby","followers_url":"https://api.github.com/users/johanhaleby/followers","following_url":"https://api.github.com/users/johanhaleby/following{/other_user}","gists_url":"https://api.github.com/users/johanhaleby/gists{/gist_id}","starred_url":"https://api.github.com/users/johanhaleby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johanhaleby/subscriptions","organizations_url":"https://api.github.com/users/johanhaleby/orgs","repos_url":"https://api.github.com/users/johanhaleby/repos","events_url":"https://api.github.com/users/johanhaleby/events{/privacy}","received_events_url":"https://api.github.com/users/johanhaleby/received_events","type":"User","site_admin":false},"created_at":"2015-07-23T19:02:38Z","updated_at":"2015-07-23T19:02:38Z","body":"_From [johan.ha...@gmail.com](https://code.google.com/u/105676376875942041029/) on October 12, 2009 05:06:07_\n\nI think I've fixed the issues now (fingers crossed). So if you don't mind would you\r\nplease update from trunk and try again?\r\n\r\nI'll also add your build issues to a new issue."}}