@SpringBootTest(classes=SimpleWebApplicationTests.Config.class) public class SimpleWebApplicationTests extends org.springframework.test.context.junit4.AbstractTransactionalJUnit4SpringContextTests
| 限定符和类型 | 类和说明 |
|---|---|
static class |
SimpleWebApplicationTests.Config |
| 限定符和类型 | 字段和说明 |
|---|---|
protected org.hswebframework.web.commons.entity.factory.EntityFactory |
entityFactory |
protected org.springframework.test.web.servlet.MockMvc |
mvc |
protected org.springframework.mock.web.MockHttpSession |
session |
protected org.hswebframework.ezorm.rdb.executor.SqlExecutor |
sqlExecutor |
protected org.springframework.web.context.WebApplicationContext |
wac |
| 构造器和说明 |
|---|
SimpleWebApplicationTests() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected org.springframework.test.web.servlet.request.MockHttpServletRequestBuilder |
initDefaultSetting(org.springframework.test.web.servlet.request.MockHttpServletRequestBuilder builder) |
void |
setup() |
protected TestProcess |
testDelete(String api) |
protected TestProcess |
testGet(String api) |
protected TestProcess |
testPost(String api) |
protected TestProcess |
testPut(String api) |
countRowsInTable, countRowsInTableWhere, deleteFromTables, deleteFromTableWhere, dropTables, executeSqlScript, setDataSource, setSqlScriptEncodingprotected org.springframework.test.web.servlet.MockMvc mvc
protected org.springframework.web.context.WebApplicationContext wac
protected org.springframework.mock.web.MockHttpSession session
@Autowired protected org.hswebframework.ezorm.rdb.executor.SqlExecutor sqlExecutor
@Autowired protected org.hswebframework.web.commons.entity.factory.EntityFactory entityFactory
protected org.springframework.test.web.servlet.request.MockHttpServletRequestBuilder initDefaultSetting(org.springframework.test.web.servlet.request.MockHttpServletRequestBuilder builder)
protected TestProcess testGet(String api) throws Exception
Exceptionprotected TestProcess testPost(String api) throws Exception
Exceptionprotected TestProcess testDelete(String api) throws Exception
Exceptionprotected TestProcess testPut(String api) throws Exception
ExceptionCopyright © 2018. All rights reserved.