Skip to content

Instantly share code, notes, and snippets.

@netodevel
Created December 30, 2016 14:24
Show Gist options
  • Save netodevel/1518486561f237c57d81b1d92bd8366f to your computer and use it in GitHub Desktop.
Save netodevel/1518486561f237c57d81b1d92bd8366f to your computer and use it in GitHub Desktop.
import org.junit.Before;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.test.web.servlet.setup.MockMvcBuilders;
public class SalarioMinimoControllerTest extends DemoApplicationTests {
private MockMvc mockMvc;
@Autowired
private SalarioMinimoController salarioMinimoController;
@Before
public void setUp() {
this.mockMvc = MockMvcBuilders.standaloneSetup(salarioMinimoController).build();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment