GithubHelp home page GithubHelp logo

bladewangpro / spring-test-examples Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chanjarster/spring-test-examples

0.0 0.0 0.0 125 KB

Spring、Spring Boot和TestNG测试指南

License: Apache License 2.0

Java 100.00%

spring-test-examples's Introduction

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

spring-test-examples's People

Contributors

chanjarster avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.