@WebAppConfiguration @ContextConfiguration(loader=org.springframework.test.context.web.AnnotationConfigWebContextLoader.class, classes={org.lanyonm.playground.config.DataConfig.class,org.lanyonm.playground.service.ExceptionServiceImpl.class,org.lanyonm.playground.service.TodoServiceImpl.class,org.lanyonm.playground.service.UserServiceImpl.class,org.lanyonm.playground.config.ViewResolver.class,org.lanyonm.playground.config.WebConfig.class}) public class TodoControllerTest extends Object
Modifier and Type | Field and Description |
---|---|
private MockMvc |
mockMvc |
org.springframework.restdocs.RestDocumentation |
restDocumentation |
private WebApplicationContext |
wac |
Constructor and Description |
---|
TodoControllerTest() |
Modifier and Type | Method and Description |
---|---|
void |
setup() |
void |
testIndex() |
void |
testTodoAddDelete() |
void |
testTodoAddEditShow() |
void |
testTodoEdit() |
public final org.springframework.restdocs.RestDocumentation restDocumentation
@Autowired private WebApplicationContext wac
public TodoControllerTest()
public void setup()
public void testTodoAddEditShow() throws Exception
Exception
public void testTodoEdit() throws Exception
Exception
public void testTodoAddDelete() throws Exception
Exception
Copyright © 2016. All rights reserved.