3 Star 6 Fork 5

jarchan / spring-test-examples

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 2.46 KB
一键复制 编辑 原始数据 按行查看 历史
jarchan 提交于 2017-09-06 16:49 . add: AOP 测试的例子

Spring、Spring Boot和TestNG测试指南

Spring、Spring Boot都提供了非常便利的测试工具,但遗憾的是官方文档的大多数例子都是基于JUnit的。本人比较喜欢用TestNG做单元、集成测试,所以开启了本项目收集了在Spring、Spring Boot项目中利用TestNG测试的例子。

章节列表

  1. Chapter 0: 基本概念
  2. Chapter 1: 基本用法
    1. 引言
    2. 认识TestNG
    3. 使用Spring Testing工具
    4. 使用Spring Boot Testing工具
  3. Chapter 2: Annotations
    1. 引言
    2. @TestPropertySource
    3. @ActiveProfile
    4. @JsonTest
    5. @OverrideAutoConfiguration
    6. @TestConfiguration
  4. Chapter 3: 使用Mockito
  5. Chapter 4: 测试关系型数据库
  6. Chapter 5: 测试Spring MVC
  7. []Chapter 6: 测试AOP]chapter_6_aop
  8. Chapter 7: 测试@Configuration
  9. Chapter 8: 共享测试配置
  10. 附录I Spring Mock Objects
  11. 附录II Spring Test Utils
Java
1
https://gitee.com/chanjarster/spring-test-examples.git
git@gitee.com:chanjarster/spring-test-examples.git
chanjarster
spring-test-examples
spring-test-examples
master

搜索帮助