spring-boot-rest-api-tdd:示例Spring Boot应用程序演示了REST API的测试优先开发

时间:2021-05-05 08:41:50
【文件属性】:
文件名称:spring-boot-rest-api-tdd:示例Spring Boot应用程序演示了REST API的测试优先开发
文件大小:79KB
文件格式:ZIP
更新时间:2021-05-05 08:41:50
Java Spring Boot REST API TDD 演示REST API的Spring Boot应用程序是测试优先开发的。 使用1个域模型 1个控制器,执行2个动作 使用本地 MySql数据库请参阅src/main/resources/{application,application-test}.properties以获取连接信息 见src/main/resources/db/migration的数据库迁移 ./gradlew flywayMigrate迁移到迁移开发数据库 ./gradlew flywayMigrate -Penv=test迁移测试数据库 jUnit,Hamcrest和Mockito的spring-boot-starter-test 具有单独测试和集成测试源集的Gradle构建系统 ./gradlew test以运行单元测试 ./gradlew integration
【文件预览】:
spring-boot-rest-api-tdd-master
----gradlew(5KB)
----src()
--------integrationTest()
--------test()
--------main()
----.idea()
--------misc.xml(2KB)
--------compiler.xml(686B)
--------.name(24B)
--------modules.xml(288B)
--------sqldialects.xml(182B)
--------runConfigurations()
--------copyright()
--------vcs.xml(180B)
----config()
--------database.groovy(309B)
----LICENSE(11KB)
----gradle()
--------dependencies.gradle(533B)
--------wrapper()
--------integrationTest.gradle(690B)
--------flyway.gradle(298B)
--------test.gradle(272B)
----README.md(913B)
----gradlew.bat(2KB)
----.gitignore(927B)
----build.gradle(942B)

网友评论