{"action":"created","issue":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/6008","repository_url":"https://api.github.com/repos/spring-projects/spring-boot","labels_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/6008/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/6008/comments","events_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/6008/events","html_url":"https://github.com/spring-projects/spring-boot/issues/6008","id":156092319,"number":6008,"title":"Document @SpringBootTest and autowiring MockMvc","user":{"login":"dsyer","id":124075,"avatar_url":"https://avatars.githubusercontent.com/u/124075?v=3","gravatar_id":"","url":"https://api.github.com/users/dsyer","html_url":"https://github.com/dsyer","followers_url":"https://api.github.com/users/dsyer/followers","following_url":"https://api.github.com/users/dsyer/following{/other_user}","gists_url":"https://api.github.com/users/dsyer/gists{/gist_id}","starred_url":"https://api.github.com/users/dsyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsyer/subscriptions","organizations_url":"https://api.github.com/users/dsyer/orgs","repos_url":"https://api.github.com/users/dsyer/repos","events_url":"https://api.github.com/users/dsyer/events{/privacy}","received_events_url":"https://api.github.com/users/dsyer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/spring-projects/spring-boot/labels/documentation","name":"documentation","color":"009800"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/spring-projects/spring-boot/milestones/42","html_url":"https://github.com/spring-projects/spring-boot/milestones/1.4.0","labels_url":"https://api.github.com/repos/spring-projects/spring-boot/milestones/42/labels","id":1171890,"number":42,"title":"1.4.0","description":"","creator":{"login":"philwebb","id":519772,"avatar_url":"https://avatars.githubusercontent.com/u/519772?v=3","gravatar_id":"","url":"https://api.github.com/users/philwebb","html_url":"https://github.com/philwebb","followers_url":"https://api.github.com/users/philwebb/followers","following_url":"https://api.github.com/users/philwebb/following{/other_user}","gists_url":"https://api.github.com/users/philwebb/gists{/gist_id}","starred_url":"https://api.github.com/users/philwebb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philwebb/subscriptions","organizations_url":"https://api.github.com/users/philwebb/orgs","repos_url":"https://api.github.com/users/philwebb/repos","events_url":"https://api.github.com/users/philwebb/events{/privacy}","received_events_url":"https://api.github.com/users/philwebb/received_events","type":"User","site_admin":false},"open_issues":21,"closed_issues":16,"state":"open","created_at":"2015-06-19T06:37:08Z","updated_at":"2016-07-11T11:15:31Z","due_on":"2016-07-27T23:00:00Z","closed_at":null},"comments":4,"created_at":"2016-05-21T09:08:06Z","updated_at":"2016-07-11T11:22:22Z","closed_at":null,"body":"Empirically I can only autowire a `MockMvc` if I use `@WebTest` (and that doesn't work at all for some applications, which is a separate topic). Surely if I have a `@SpringBootTest` it can make a `MockMvc` for me? Or am I missing something?"},"comment":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/comments/231708062","html_url":"https://github.com/spring-projects/spring-boot/issues/6008#issuecomment-231708062","issue_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/6008","id":231708062,"user":{"login":"snicoll","id":490484,"avatar_url":"https://avatars.githubusercontent.com/u/490484?v=3","gravatar_id":"","url":"https://api.github.com/users/snicoll","html_url":"https://github.com/snicoll","followers_url":"https://api.github.com/users/snicoll/followers","following_url":"https://api.github.com/users/snicoll/following{/other_user}","gists_url":"https://api.github.com/users/snicoll/gists{/gist_id}","starred_url":"https://api.github.com/users/snicoll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snicoll/subscriptions","organizations_url":"https://api.github.com/users/snicoll/orgs","repos_url":"https://api.github.com/users/snicoll/repos","events_url":"https://api.github.com/users/snicoll/events{/privacy}","received_events_url":"https://api.github.com/users/snicoll/received_events","type":"User","site_admin":false},"created_at":"2016-07-11T11:22:22Z","updated_at":"2016-07-11T11:22:22Z","body":"I don't know if the documentation has changed much (doesn't look like it) but the Javadoc of `MockMvcTest` states:\r\n\r\n> If you are looking to load your full application configuration and use MockMVC, you should consider @SpringBootTest combined with @AutoConfigureMockMvc rather than this annotation.\r\n\r\nThere is also something in the documentation about it though it can be more explicit. I'll rephrase and add a `TIP` to make it a bit more obvious."}}
{"actor":{"display_login":"snicoll"}}