{"action":"created","issue":{"url":"https://api.github.com/repos/junit-team/junit/issues/1100","labels_url":"https://api.github.com/repos/junit-team/junit/issues/1100/labels{/name}","comments_url":"https://api.github.com/repos/junit-team/junit/issues/1100/comments","events_url":"https://api.github.com/repos/junit-team/junit/issues/1100/events","html_url":"https://github.com/junit-team/junit/issues/1100","id":62470143,"number":1100,"title":"JUnit38ClassRunner does not recognize AssumptionViolationException","user":{"login":"maciejmikosik","id":5139246,"avatar_url":"https://avatars.githubusercontent.com/u/5139246?v=3","gravatar_id":"","url":"https://api.github.com/users/maciejmikosik","html_url":"https://github.com/maciejmikosik","followers_url":"https://api.github.com/users/maciejmikosik/followers","following_url":"https://api.github.com/users/maciejmikosik/following{/other_user}","gists_url":"https://api.github.com/users/maciejmikosik/gists{/gist_id}","starred_url":"https://api.github.com/users/maciejmikosik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maciejmikosik/subscriptions","organizations_url":"https://api.github.com/users/maciejmikosik/orgs","repos_url":"https://api.github.com/users/maciejmikosik/repos","events_url":"https://api.github.com/users/maciejmikosik/events{/privacy}","received_events_url":"https://api.github.com/users/maciejmikosik/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-17T17:54:50Z","updated_at":"2015-03-18T02:31:34Z","closed_at":"2015-03-18T02:31:34Z","body":"Running this class\r\n\r\n```\r\n@RunWith(AllTests.class)\r\npublic class AssumptionsInJunit3Test {\r\n  public static junit.framework.Test suite() {\r\n    TestSuite suite = new TestSuite(\"suite\");\r\n    suite.addTest(new TestCase(\"internal_assumption\") {\r\n      protected void runTest() throws Throwable {\r\n        throw new org.junit.internal.AssumptionViolatedException(\"\");\r\n      }\r\n    });\r\n    suite.addTest(new TestCase(\"assumption\") {\r\n      protected void runTest() throws Throwable {\r\n        throw new org.junit.AssumptionViolatedException(\"\");\r\n      }\r\n    });\r\n    return suite;\r\n  }\r\n}\r\n```\r\n\r\nwith eclipse junit runner reports both tests as failed instead of ignored.\r\nStack trace shows that `org.junit.internal.runners.JUnit38ClassRunner` was used.\r\n\r\n```\r\norg.junit.internal.AssumptionViolatedException: \r\n\tat AssumptionsInJunit3Test$1.runTest(AssumptionsInJunit3Test.java:13)\r\n\tat junit.framework.TestCase.runBare(TestCase.java:141)\r\n\tat junit.framework.TestResult$1.protect(TestResult.java:122)\r\n\tat junit.framework.TestResult.runProtected(TestResult.java:142)\r\n\tat junit.framework.TestResult.run(TestResult.java:125)\r\n\tat junit.framework.TestCase.run(TestCase.java:129)\r\n\tat junit.framework.TestSuite.runTest(TestSuite.java:252)\r\n\tat junit.framework.TestSuite.run(TestSuite.java:247)\r\n\tat org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:86)\r\n\tat org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)\r\n\tat org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)\r\n\tat org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)\r\n\tat org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)\r\n\tat org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)\r\n\tat org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)\r\n```\r\n\r\nIs this an expected behavior or something that can be fixed?\r\n"},"comment":{"url":"https://api.github.com/repos/junit-team/junit/issues/comments/82693687","html_url":"https://github.com/junit-team/junit/issues/1100#issuecomment-82693687","issue_url":"https://api.github.com/repos/junit-team/junit/issues/1100","id":82693687,"user":{"login":"kcooney","id":478190,"avatar_url":"https://avatars.githubusercontent.com/u/478190?v=3","gravatar_id":"","url":"https://api.github.com/users/kcooney","html_url":"https://github.com/kcooney","followers_url":"https://api.github.com/users/kcooney/followers","following_url":"https://api.github.com/users/kcooney/following{/other_user}","gists_url":"https://api.github.com/users/kcooney/gists{/gist_id}","starred_url":"https://api.github.com/users/kcooney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kcooney/subscriptions","organizations_url":"https://api.github.com/users/kcooney/orgs","repos_url":"https://api.github.com/users/kcooney/repos","events_url":"https://api.github.com/users/kcooney/events{/privacy}","received_events_url":"https://api.github.com/users/kcooney/received_events","type":"User","site_admin":false},"created_at":"2015-03-18T02:31:34Z","updated_at":"2015-03-18T02:31:34Z","body":"The Runner abstraction should make this easy in JUnit4. If that doesn't help, I suggest the mailing list or Stackoverflow."}}