{"action":"opened","issue":{"url":"https://api.github.com/repos/junit-team/junit5/issues/208","repository_url":"https://api.github.com/repos/junit-team/junit5","labels_url":"https://api.github.com/repos/junit-team/junit5/issues/208/labels{/name}","comments_url":"https://api.github.com/repos/junit-team/junit5/issues/208/comments","events_url":"https://api.github.com/repos/junit-team/junit5/issues/208/events","html_url":"https://github.com/junit-team/junit5/issues/208","id":141382525,"number":208,"title":"Extensions registered within test class hierarchy are ordered bottom-up instead of top-down","user":{"login":"sbrannen","id":104798,"avatar_url":"https://avatars.githubusercontent.com/u/104798?v=3","gravatar_id":"","url":"https://api.github.com/users/sbrannen","html_url":"https://github.com/sbrannen","followers_url":"https://api.github.com/users/sbrannen/followers","following_url":"https://api.github.com/users/sbrannen/following{/other_user}","gists_url":"https://api.github.com/users/sbrannen/gists{/gist_id}","starred_url":"https://api.github.com/users/sbrannen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbrannen/subscriptions","organizations_url":"https://api.github.com/users/sbrannen/orgs","repos_url":"https://api.github.com/users/sbrannen/repos","events_url":"https://api.github.com/users/sbrannen/events{/privacy}","received_events_url":"https://api.github.com/users/sbrannen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/junit-team/junit5/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/junit-team/junit5/labels/extensions","name":"extensions","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/junit-team/junit5/milestones/2","html_url":"https://github.com/junit-team/junit5/milestones/5.0%20M1","labels_url":"https://api.github.com/repos/junit-team/junit5/milestones/2/labels","id":1455861,"number":2,"title":"5.0 M1","description":"First major milestone release for JUnit 5 after the Alpha release","creator":{"login":"sbrannen","id":104798,"avatar_url":"https://avatars.githubusercontent.com/u/104798?v=3","gravatar_id":"","url":"https://api.github.com/users/sbrannen","html_url":"https://github.com/sbrannen","followers_url":"https://api.github.com/users/sbrannen/followers","following_url":"https://api.github.com/users/sbrannen/following{/other_user}","gists_url":"https://api.github.com/users/sbrannen/gists{/gist_id}","starred_url":"https://api.github.com/users/sbrannen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbrannen/subscriptions","organizations_url":"https://api.github.com/users/sbrannen/orgs","repos_url":"https://api.github.com/users/sbrannen/repos","events_url":"https://api.github.com/users/sbrannen/events{/privacy}","received_events_url":"https://api.github.com/users/sbrannen/received_events","type":"User","site_admin":false},"open_issues":32,"closed_issues":27,"state":"open","created_at":"2015-12-11T12:28:52Z","updated_at":"2016-03-16T19:49:17Z","due_on":"2016-04-29T22:00:00Z","closed_at":null},"comments":0,"created_at":"2016-03-16T19:49:17Z","updated_at":"2016-03-16T19:49:17Z","closed_at":null,"body":"While testing support for using `@ExtendWith` within a test class hierarchy in conjunction with #207, it became apparent that extensions will currently be registered bottom-up instead of top-down, with the latter being the expected behavior.\r\n\r\n## Example\r\n\r\nGiven the following use case with extensions `A` and `B`, one would expect extension `A` to be registered before `B`; however, the opposite is true.\r\n\r\n````java\r\n\t@ExtendWith(A.class)\r\n\tstatic class MultiExtensionClass {\r\n\t}\r\n\r\n\t@ExtendWith(B.class)\r\n\tstatic class SubMultiExtensionClass extends MultiExtensionClass {\r\n\t}\r\n````\r\n\r\n## Related Tests\r\n\r\nSee the `findRepeatableAnnotationsWithMultipleAnnotationsOnSuperclass` and `findRepeatableAnnotationsWithContainerAnnotationOnSuperclass` test cases in `AnnotationUtilsTests` for concrete examples."}}