• Stars
    star
    299
  • Rank 139,269 (Top 3 %)
  • Language
    Java
  • License
    Apache License 2.0
  • Created over 7 years ago
  • Updated over 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Spring、Spring Boot和TestNG测试指南

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: 测试关系型数据库
    1. 基本做法
    2. 使用Docker创建临时数据库
  6. Chapter 5: 测试Spring MVC
  7. Chapter 6: 测试AOP
  8. Chapter 7: 测试@Configuration
  9. Chapter 8: 共享测试配置
  10. 附录I Spring Mock Objects
  11. 附录II Spring Test Utils

More Repositories

1

weixin-java-tools

微信公众号、企业号Java SDK
Java
2,745
star
2

artemis-disruptor-miaosha

没有redis也能够支撑"小米在印度把亚马逊搞挂了"事件的秒杀解决方案
Java
617
star
3

spring-boot-all-callbacks

Spring boot回调接口汇总
HTML
175
star
4

spring-mvc-error-handling-example

Spring MVC error handling example
Java
74
star
5

activiti-learn

Activiti样例代码集合
Java
63
star
6

transactions

关于各种Transaction解决方案的介绍
43
star
7

web-async-learn

Java web开发async机制学习
Java
36
star
8

prometheus-learn

学习Prometheus
Shell
26
star
9

dockerfile-examples

制作docker image的例子
Java
26
star
10

tomcat-mongo-access-log

A tomcat plugin saving access log to mongodb
Java
21
star
11

kubebuilder-mix-codegen-how-to

Mix kubebuilder and code-generator example
Go
21
star
12

k8s-learn

k8s learn
20
star
13

springboot-jackson-datetime-example

Spring Boot Jackson对于日期时间类型处理的例子
Java
16
star
14

prometheus-mock-data

A tool to generating prometheus mock scrape data
Java
16
star
15

spring-boot-istio-jaeger-demo

Spring Boot项目利用Istio的Jaeger做分布式Tracing的例子
Java
15
star
16

api-gateways-comparison

API Gateways' library comparison
HTML
11
star
17

mysql-master-slave-docker-example

10
star
18

spring-tx-learn

Spring transaction learn
Java
10
star
19

spring-jms-learn

Spring JMS学习
Java
8
star
20

networking-for-programmer

面向程序员的网络基本知识
6
star
21

tomcat-mongo-access-log-console

Console for querying tomcat access log saved in mongodb
JavaScript
5
star
22

spring-boot-redis-sentinel-example

Java
5
star
23

java-remote-debug-and-monitor

Java远程Debug及Monitor的例子
Java
4
star
24

arts

每周一个Algorithm、Review一篇英文文章、一个技术Tip、Share一个观点
Java
3
star
25

mybatis-learn

学习mybatis的小项目
Java
3
star
26

autoconf

A simple tool to parse yaml, env and flags to structs
2
star
27

io-modes-benchmark

不同IO模式的benchmark
Java
2
star
28

kafka-learn

Learning kafka
Java
2
star
29

gears

A Go microservice toolbox
Go
2
star
30

k8s-code-gen-how-to

How to use k8s.io/code-generator
Go
2
star
31

jdbc-timezone

研究JDBC对于数据库Timezone处理的例子
Java
2
star
32

tencent-pvp-equipment-simulator

王者荣耀出装模拟器
CSS
1
star
33

licai

Jupyter Notebook
1
star
34

chanjarster.github.io

My Blog
HTML
1
star
35

java-concurrency-learn

java concurrency program learn
Java
1
star
36

tls-client-auth-samples

TLS Client Authentication Client & Server Samples
Java
1
star