{"action":"created","issue":{"url":"https://api.github.com/repos/junit-team/junit/issues/1137","labels_url":"https://api.github.com/repos/junit-team/junit/issues/1137/labels{/name}","comments_url":"https://api.github.com/repos/junit-team/junit/issues/1137/comments","events_url":"https://api.github.com/repos/junit-team/junit/issues/1137/events","html_url":"https://github.com/junit-team/junit/pull/1137","id":72721795,"number":1137,"title":"Suggested improvement - use the TestClass object to create instances of the test object","user":{"login":"ashleyfrieze","id":5574729,"avatar_url":"https://avatars.githubusercontent.com/u/5574729?v=3","gravatar_id":"","url":"https://api.github.com/users/ashleyfrieze","html_url":"https://github.com/ashleyfrieze","followers_url":"https://api.github.com/users/ashleyfrieze/followers","following_url":"https://api.github.com/users/ashleyfrieze/following{/other_user}","gists_url":"https://api.github.com/users/ashleyfrieze/gists{/gist_id}","starred_url":"https://api.github.com/users/ashleyfrieze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashleyfrieze/subscriptions","organizations_url":"https://api.github.com/users/ashleyfrieze/orgs","repos_url":"https://api.github.com/users/ashleyfrieze/repos","events_url":"https://api.github.com/users/ashleyfrieze/events{/privacy}","received_events_url":"https://api.github.com/users/ashleyfrieze/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-03T00:21:55Z","updated_at":"2015-05-04T01:49:33Z","closed_at":"2015-05-04T01:49:33Z","pull_request":{"url":"https://api.github.com/repos/junit-team/junit/pulls/1137","html_url":"https://github.com/junit-team/junit/pull/1137","diff_url":"https://github.com/junit-team/junit/pull/1137.diff","patch_url":"https://github.com/junit-team/junit/pull/1137.patch"},"body":"This allows for a runner to be created by something\r\nwhich intends to modify the test object before the test starts. This can\r\nlead to one runner executing a different sort of runner in a chain of responsibility pattern.\r\n\r\nIt could allow an outer class to have one runner and a static inner class to have another test runner, which can have values injected into its test object by the parent outer class.\r\n\r\nExample - a MockitoJunitRunner could be used to inject values into\r\na test object running in a SpringJUnitRunner inner class. This would\r\nrequire those runners to change too, of course.\r\n\r\nRight now, the problem with runners is that they're monolithic and use\r\ninheritance to share features. This change is intended to allow more\r\ninjection of behaviour/data across runners via the test object."},"comment":{"url":"https://api.github.com/repos/junit-team/junit/issues/comments/98565766","html_url":"https://github.com/junit-team/junit/pull/1137#issuecomment-98565766","issue_url":"https://api.github.com/repos/junit-team/junit/issues/1137","id":98565766,"user":{"login":"ashleyfrieze","id":5574729,"avatar_url":"https://avatars.githubusercontent.com/u/5574729?v=3","gravatar_id":"","url":"https://api.github.com/users/ashleyfrieze","html_url":"https://github.com/ashleyfrieze","followers_url":"https://api.github.com/users/ashleyfrieze/followers","following_url":"https://api.github.com/users/ashleyfrieze/following{/other_user}","gists_url":"https://api.github.com/users/ashleyfrieze/gists{/gist_id}","starred_url":"https://api.github.com/users/ashleyfrieze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashleyfrieze/subscriptions","organizations_url":"https://api.github.com/users/ashleyfrieze/orgs","repos_url":"https://api.github.com/users/ashleyfrieze/repos","events_url":"https://api.github.com/users/ashleyfrieze/events{/privacy}","received_events_url":"https://api.github.com/users/ashleyfrieze/received_events","type":"User","site_admin":false},"created_at":"2015-05-04T01:49:32Z","updated_at":"2015-05-04T01:49:32Z","body":"I'm going to make this one again when I'm properly synced with 4.13"}}