@@ -0,0 +1,1624 @@
+package com.poseidon.controller;%0A%0Aimport com.poseidon.PoseidonApplicationTests;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.test.web.servlet.MockMvc;%0A%0Aimport static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;%0Aimport static org.springframework.test.web.servlet.result.MockMvcResultMatchers.model;%0Aimport static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;%0Aimport static org.springframework.test.web.servlet.result.MockMvcResultMatchers.view;%0Aimport static org.springframework.test.web.servlet.setup.MockMvcBuilders.standaloneSetup;%0A%0A/**%0A * Created by wahrons on 2/6/16.%0A */%0Apublic class MedicoControlerITest extends PoseidonApplicationTests %7B%0A%0A    private MockMvc mockMvc;%0A%0A    @Autowired%0A    private MedicoController medicoController;%0A%0A    @Before%0A    public void setUp()%7B%0A        mockMvc= standaloneSetup(medicoController).build();%0A    %7D%0A%0A    @Test%0A    public void medicoTest() throws Exception %7B%0A%0A        this.mockMvc.perform(get(%22/medico%22).param(%22isCadastroMedico%22,%22true%22).param(%22isPesquisaMedico%22,%22false%22).param(%22isDeleteMedico%22,%22false%22).param(%22isEditarMedico%22,%22false%22).param(%22isExibirMedico%22,%22false%22)).andExpect(status().isOk())%0A                .andExpect(view().name(%22Medico%22)).andExpect(model().attribute(%22isCadastroMedico%22,%22true%22)).andExpect(model().attribute(%22isPesquisaMedico%22,%22false%22)).andExpect(model().attribute(%22isDeleteMedico%22,%22false%22)).andExpect(model().attribute(%22isEditarMedico%22,%22false%22)).andExpect(model().attribute(%22isExibirMedico%22,%22false%22));%0A    %7D%0A%0A%7D%0A

add medicoController integration test