Testing Spring Boot: Beginner to Guru

所在平台: Udemy

课程主页: https://www.udemy.com/course/testing-spring-boot-beginner-to-guru/

课程评论:没有评论

第一个写评论        关注课程

课程简介

本Coursera课程“Testing Spring Boot: Beginner to Guru”旨在教授学员如何使用流行的开源工具测试Java和Spring Boot应用程序。 该课程将深入介绍软件测试生态系统,重点讲解 JUnit 5 和 Mockito 2,这是Java领域领先的测试库。学员将学习如何利用JUnit提供测试执行上下文,以及Mockito的强大模拟功能,并能编写单元测试、集成测试和功能测试。课程强调了测试覆盖率对于敏捷实践(如CI/CD)的重要性。 此外,课程将通过实际案例演示测试驱动开发(TDD),并深入讲解JUnit 5的特性,包括如何迁移JUnit 4测试到JUnit 5。学员将学习如何使用Mockito来模拟依赖对象,为Spring Framework应用编写单元测试。 课程的重点包括: * **单元测试基础**:使用JUnit 5和Mockito深入学习Java类的单元测试。 * **Spring Framework测试**:学习如何利用Spring Framework的测试上下文和依赖注入功能。 * **Spring MVC测试**:掌握使用Spring MVC Test和Spring Boot Test Slices来测试Spring MVC控制器(包括RESTful控制器)。 * **API文档生成**:学习使用Spring MVC REST Docs从Mock MVC测试生成API文档。 * **其他重要工具**:介绍AssertJ、Hamcrest Matchers、JsonPath、Wiremock等。 * **敏捷开发实践**:探讨TDD和Behavior Driven Development (BDD) with Mockito。 * **工具链集成**:学习如何从Maven和Gradle运行JUnit 5测试,并使用CircleCI进行持续集成测试。 课程还提供额外资源,包括IntelliJ IDEA Ultimate的120天免费试用、访问包含1000+ Spring Guru的私有Slack社区、GitHub源代码访问、英文CC字幕、PDF演示文稿下载以及终身访问权限和30天无风险退款保证。 这门课程是学习Spring Boot应用程序最新测试工具和最佳实践的理想选择。

课程评论(0条)

课程详情

In modern software development having proper automated test coverage is considered a best practice. In this course you will learn how to test Java and Spring Boot applications using highly popular open source tools. You will see in the first section of this course, the software testing ecosystem is very diverse. JUnit and Mockito are two of the leading testing libraries for Java. JUnit provides the test execution context, while Mockito give you power mocking capabilities. Together these libraries can be used to write unit tests, integration tests, and functional tests. You will also learn why having proper test coverage is critical to supporting other popular agile practices such as Continuous Integration and Continuous Deployment (aka CI/CD).Agile teams all over the world consider Test Driven Development (TDD) a critical technique for producing quality software. This course begins by using JUnit 5 to demonstrate how to use TDD to create a simple Java application, then again using TDD to evolve the application to a higher level of quality and functionality. Next, the course takes you into a deep dive of the features and functionality of JUnit 5. You will learn how to write JUnit 5 unit tests for a Java web application. The primary focus of this course is on the JUnit 5 release. There are some very notable differences between JUnit 4 and JUnit 5. This course contains a dedicated section showing you how to migrate your JUnit 4 tests to JUnit 5.As your testing needs become more complex, you will need to mock dependent objects. Not sure what a mock is? It's effectively a test double. An object created for unit testing.Mockito is the most popular mocking library used by Java developers. If you are writing Spring Framework applications, you're likely to be injecting dependent objects into your classes. You will learn how to use the robust mocking capabilities of Mockito to mock dependent objects in your unit tests.The first 11 sections of the course focus heavily on unit testing with JUnit 5 and Mockito. This is to help you establish a strong unit testing foundation before we start testing Spring Boot applications. You will have no doubts when it comes to testing Java classes using JUnit 5 and Mockito.The Spring Framework itself has some very robust testing capabilities. We start learning to test the Spring Framework by adding the Spring Framework Testing context to our tests. This allows us to leverage the Spring Framework's Dependency Injection capabilities right in our tests.Properly testing Spring MVC controllers can always be a little tricky. You need to test all the things you are expecting the Spring Framework to handle for you around calls to your controllers.This is where Spring MVC Test steps in. You will see how you can use Spring MVC Test with JUnit 5 and Mockito to properly test your Spring MVC Controllers. The course continues showing you how to use Spring Boot test splices to bring up a minimal Spring Boot configuration for the testing of a Spring MVC RESTful controller.Another powerful Spring project is Spring MVC REST Docs. This is a project which allows you to generate API documentation from your Spring Mock MVC tests.Inside this course you will learn:JUnit 5AssertJHamcrest MatchersMockito 2Test Driven Development (TDD)Behavior Driven Development (BDD) with MockitoMigrating to JUnit 5 from JUnit 4Running JUnit 5 tests from MavenRunning JUnit 5 tests from Gradle Use CircleCI with Maven for Continuous Integration TestingSpring MVC TestJsonPathWiremockSpring MVC REST DocsCourse Extra - IntelliJ IDEA UltimateStudents enrolling in the course can receive a free 120 day trial license to IntelliJ IDEA Ultimate! Get hands on experience using the Java IDE preferred by Spring Framework professionals! Course Extra - Access to a Private Slack CommunityYou're not just enrolling in a course -> You are joining a community learning about testing Spring.With your enrollment to the course, you can access an exclusive Slack community. Get help from the instructor and other Spring Framework Gurus from around the world - in real time! This community is only available to students enrolled in this course. This is a very active Slack community with over 1,000 Spring Framework Gurus!This is the largest online community of people learning Spring in the world.With your enrollment, you can join this community of awesome gurus!Source Code AccessAll course source code is available in GitHub. When you enroll, refer to the lesson resources for links to GitHub.Closed Captioning / SubtitlesClosed captioning in English is available for all course videos!PDF DownloadsAll keynote presentations are available for you to download as PDFs.Lifetime AccessWhen you purchase this course, you will receive lifetime access! You can login anytime from anywhere to access the course content.No Risk - Money Back Guarantee You can buy this course with no risk. If you are unhappy with the course, for any reason, you can get a complete refund. The course has a 30 day Money Back Guarantee.Enroll today and start learning about the latest tools and best practices for testing your Spring Boot applications!

课程标签

0人关注该课程

主题相关的课程