@@ -0,0 +1,2108 @@
+package br.com.fsp.wine;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.mockito.InjectMocks;%0Aimport org.mockito.Mock;%0Aimport org.mockito.MockitoAnnotations;%0Aimport org.springframework.boot.test.SpringApplicationConfiguration;%0Aimport org.springframework.test.context.junit4.SpringJUnit4ClassRunner;%0Aimport org.springframework.test.context.web.WebAppConfiguration;%0Aimport org.springframework.test.web.servlet.MockMvc;%0Aimport org.springframework.test.web.servlet.ResultActions;%0Aimport org.springframework.test.web.servlet.request.MockMvcRequestBuilders;%0Aimport org.springframework.test.web.servlet.result.MockMvcResultMatchers;%0Aimport org.springframework.test.web.servlet.setup.MockMvcBuilders;%0A%0Aimport br.com.fsp.wine.controller.VinhosController;%0Aimport br.com.fsp.wine.service.VinhoService;%0A%0A@RunWith(SpringJUnit4ClassRunner.class)%0A@SpringApplicationConfiguration(classes = WineApplication.class)%0A@WebAppConfiguration%0Apublic class VinhosControllerTests %7B%0A%0A%09@InjectMocks%0A%09private VinhosController vinhosController;%0A%09%0A%09@Mock%0A%09private VinhoService vinhoService;%0A%09%0A%09private MockMvc mockMvc;%0A%09%0A%09private ResultActions resultActions;%0A%09%0A%09private final String URL_LISTAR_VINHOS = %22/vinhos%22;%0A%09private final String TELA_LISTAR_VINHOS = %22/vinho/Listagem%22;%0A%09private final String TELA_CADASTRAR_VINHOS = %22/vinho/Cadastro%22;%0A%09private final String URL_CADASTRAR_VINHOS = %22/vinhos/novo%22;%0A%09%0A%09@Before%0A%09public void setup()%7B%0A%09%09MockitoAnnotations.initMocks(this);%0A%09%09this.mockMvc = MockMvcBuilders.standaloneSetup(vinhosController).build();%0A%09%7D%0A%09%0A%09@Test%0A%09public void selecionarListagemVinhosDeveRetonarPaginaListagemVinhos() throws Exception %7B%0A%09%09resultActions = mockMvc.perform(MockMvcRequestBuilders.get(URL_LISTAR_VINHOS));%0A%09%09resultActions.andExpect(MockMvcResultMatchers.view().name(TELA_LISTAR_VINHOS));%0A%09%7D%0A%09%0A%09@Test%0A%09public void selecionarCadastrarVinhoDeveRetonarPaginaCadastroDeVinhos() throws Exception %7B%0A%09%09resultActions = mockMvc.perform(MockMvcRequestBuilders.get(URL_CADASTRAR_VINHOS));%0A%09%09resultActions.andExpect(MockMvcResultMatchers.view().name(TELA_CADASTRAR_VINHOS));%0A%09%7D%0A%0A%7D%0A

fix #51, Classe de teste do VinhosController.