integration-test-example:在Spring中使用单元测试和集成测试的示例

上传者: 42131316 | 上传时间: 2023-01-07 14:51:50 | 文件大小: 9KB | 文件类型: ZIP
集成测试示例 使用Spring Boot和Maven创建单元和集成测试的简单示例 命令 mvn全新安装 仅运行单元测试 mvn全新安装-Dit 运行单元测试以及集成测试。 src / test /中有两个脚本,run-pre-integration.sh和run-post-integration.sh用于启动依赖项,例如docker容器。

文件下载

资源详情

[{"title":"( 12 个子文件 9KB ) integration-test-example:在Spring中使用单元测试和集成测试的示例","children":[{"title":"integration-test-example-main","children":[{"title":"pom.xml <span style='color:#111;'> 4.41KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"test","children":[{"title":"run-pre-integration.sh <span style='color:#111;'> 44B </span>","children":null,"spread":false},{"title":"run-post-integration.sh <span style='color:#111;'> 43B </span>","children":null,"spread":false},{"title":"resources","children":[{"title":"application-integration.properties <span style='color:#111;'> 37B </span>","children":null,"spread":false}],"spread":true},{"title":"java","children":[{"title":"com","children":[{"title":"github","children":[{"title":"cesaralcancio","children":[{"title":"unit","children":[{"title":"tests","children":[{"title":"ValidateUnitTest.java <span style='color:#111;'> 257B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"integration","children":[{"title":"testes","children":[{"title":"ValidateConnectionsWithContainers.java <span style='color:#111;'> 972B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"main","children":[{"title":"resources","children":[{"title":"application.properties <span style='color:#111;'> 30B </span>","children":null,"spread":false}],"spread":true},{"title":"java","children":[{"title":"com","children":[{"title":"github","children":[{"title":"cesaralcancio","children":[{"title":"Application.java <span style='color:#111;'> 316B </span>","children":null,"spread":false},{"title":"controller","children":[{"title":"MyDataController.java <span style='color:#111;'> 484B </span>","children":null,"spread":false}],"spread":true},{"title":"utils","children":[{"title":"MyData.java <span style='color:#111;'> 303B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".gitignore <span style='color:#111;'> 41B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 408B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明