Spring Boot Unit Testing with JUnit, Mockito and MockMvc

所在平台: Udemy

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

课程评论:没有评论

第一个写评论        关注课程

课程简介

课程名称:Spring Boot单元测试:JUnit、Mockito与MockMvc 课程概述:本课程已更新至Spring Boot 3,介绍了如何利用Spring Boot 3这个构建企业级Java应用程序的热门框架,进行单元测试和集成测试。通过本课程,您将学习到如何利用JUnit、Mockito和MockMvc来创建更具良好代码设计、减少错误和提高可靠性的应用程序。课程内容还包括使用现代开发工具,如IntelliJ(免费版)和Maven,所有项目均基于Maven,因此您也可以使用其他IDE工具。 学习内容包括: - JUnit:设置项目、应用断言、利用JUnit生命周期注释等。 - 测试驱动开发(TDD):创建失败的测试、更新代码使测试通过、处理测试预设等。 - Spring Boot单元测试支持:使用@SpringBootTest注释、读取Spring Boot应用程序属性、执行断言等。 - Mockito:识别需要模拟的情况、使用Mockito进行单元测试、抛出异常等。 - 数据库集成测试:进行数据库设置与清理、使用嵌入式数据库测试等。 - Web应用程序与REST API的测试:使用MockMvc测试Spring MVC和REST控制器,发送HTTP请求并断言结果。 与其他课程相比,本课程内容更新至Spring Boot 3,采用现代开发工具,讲师响应迅速,提供所有源代码和设置说明。 学生反馈显示,课程讲解清晰、结构合理,音视频质量高,许多学生表示这是他们最喜欢的Spring Boot单元测试课程。课程适合具有Spring Boot经验的Java开发者。 此外,您可以免费预览课程的25%,如果对课程不满意,Udemy提供30天退款保障,风险极低。快来报名学习如何应用Spring Boot单元测试吧!

课程评论(0条)

课程详情

UPDATED TO COVER SPRING BOOT 3Spring Boot 3 is the most popular framework for building enterprise Java applications. Spring Boot 3 includes testing support to develop unit tests and integration tests using JUnit, Mockito and MockMvc. By developing tests, you can create applications with better code design, fewer bugs, and higher reliability. This course shows you how to take full advantage of Spring Boot's testing support.You will also use modern development tools such as IntelliJ (free version) and Maven. All of the projects are based on Maven, so you are free to use any IDE tool that you want.--In this course, you will get:- All source code is available for download- Responsive Instructors: All questions answered within 24 hours- PDFs of all lectures are available for download- Professional video and audio recordings (check the free previews)- High quality closed-captions / subtitles available for English and 14 other languages (new!)--Over 3,000+ Reviews! - (the most reviews for any Spring Boot Unit Testing course on Udemy, nearly DOUBLE the nearest competitor)Students love this course! 5-star reviewsChad Darby and Eric Roby are great at delivering the materials and giving good real-world examples of concepts. they make the course a very enjoyable class, This course is very thorough and detailed. Thank you - NinosGreat course, the material is explained in such a clear way. I enjoy it a lot. Highly recommendable. - Ardak SydyknazarChad Darby's courses are the best on Udemy. Thanks him I've got my first work and got promotion on the second one. Good job, my friend! (c):) - Andrii Hryhorievthis is my 4th Course with Mr. Darby, and his courses are so special. Organized, clear concepts, amazing material. and the most important his Knowledge of the Topic and he really deliver the information's for us. just amazing. - Ra'ed Abu Sa'da--In this course, you will learn how to:JUnitDevelop JUnit TestsSet up projects to use JUnitApply JUnit assertions: Equals/Not Equals and Null/NotNullApply JUnit assertions: Same/Not Same and True/FalseLeverage JUnit lifecycle annotationsDefine custom display names for JUnit testsCheck for exceptions and timeoutsDefine execution order in JUnit testsPerform code coverage analysis for JUnit testsApply conditionals with JUnit testsTest Driven Development (TDD)Apply Test Driven Development for build tests and application codeCreate a failing test firstUpdate your code to make the tests passTake your tests from RED to GREENApply TDD to a coding projectLeverage parameterized tests with TDDSpring Boot Unit Testing SupportExplore annotations for Spring Boot Unit Testing supportApply the @SpringBootTest annotationRead Spring Boot application properties and inject values using the @TestPropertySource annotationPerform assertEquals and assertNotEqualsLeverage Spring Boot singleton beans and prototype beansMocking with MockitoIdentify the need for mocking during test developmentLeverage Mockito in JUnit testsApplying the @MockitoBean annotation for injection (new in Spring Boot 3.4)Throwing exceptions with MocksSpring Reflection UtilsIdentify use cases for applying reflection in your JUnit testsApply ReflectionTestUtils to access non-public fields and methodsIntegrate Spring Reflection Utils in your JUnit testsDatabase Integration TestingIdentify the need for database integration testing during test developmentAdd database setup and clean code using @BeforeEach and @AfterEachLeverage an embedded database to ease with testing setup and maintenance.External SQL statements using @Sql annotationTesting Spring Boot MVC Web Apps with MockMvcApply Spring Boot using testing for a Spring MVC CRUD web appIdentify use cases for testing Spring MVC @ControllerConfigure the JUnit test case using @AutoConfigureMockMvcInject the MockMvc dependency for testing Spring MVC ControllersSend HTTP Requests to Spring MVC Controllers and assert the resultsAssert the view name returned by the Spring MVC ControllerAssert model attributes for the desired valuesTesting Spring Boot REST APIs with MockMvcApply Spring Boot using testing for a Spring REST CRUD APIInject the MockMvc dependency for testing Spring MVC @RestControllerSend HTTP Requests to Spring MVC @RestController and assert the resultsLeverage Jackson Object Mapper to send JSON data to REST API endpointExpect successful response and desired content typeApply JsonPath to verify contents of JSON responseCompared to other Spring Boot Unit Testing coursesThis course is up to date and covers recent versions of Spring Boot 3. We make use of modern development tools such as IntelliJ (free version) and Maven.We are very responsive instructors and we are available to answer your questions and help you work through any problems.Finally, all source code is provided with the course along with setup instructions.Student Reviews Prove This Course's WorthThose who have reviewed the course have pointed out that the instruction is clear and easy to follow, as well as thorough and highly informative. Many students had also taken other Spring Boot Unit Testing courses in the past, only to find that this Spring Boot Unit Testing course was their favorite. They enjoyed the structure of the content and the high quality audio/video. Sample of Student Reviews - 5 stars!Chad Darby and Eric Roby are great at delivering the materials and giving good real-world examples of concepts. they make the course a very enjoyable class, This course is very thorough and detailed. Thank you - NinosGreat course, the material is explained in such a clear way. I enjoy it a lot. Highly recommendable. - Ardak SydyknazarChad Darby's courses are the best on Udemy. Thanks him I've got my first work and got promotion on the second one. Good job, my friend! (c):) - Andrii Hryhorievthis is my 4th Course with Mr. Darby, and his courses are so special. Organized, clear concepts, amazing material. and the most important his Knowledge of the Topic and he really deliver the information's for us. just amazing. - Ra'ed Abu Sa'daQuality MaterialYou will receive a quality course, with solid technical material and excellent audio and video production. I am a best-selling instructor on Udemy. Here's a list of my top courses.Full Stack: React and Spring Boot Full Stack: Angular and Spring Boot E-Commerce WebsiteSpring and Hibernate for BeginnersHibernate: Advanced Development TechniquesDeploy Spring Boot 3 Apps Online to Amazon Cloud (AWS)JSP and Servlets for BeginnersJavaServer Faces (JSF) for BeginnersThese courses have received rave 5 star reviews and over 800,000 students have taken the courses. Also, these courses are the most popular courses in their respective categories.I also have an active YouTube channel where I post regular videos. In the past year, I've created over 1200 video tutorials (public and private). My YouTube channel has over 7 million views and 43k subscribers. So I understand what works and what doesn't work for creating video tutorials.No Risk - Udemy Refund Finally, there is no risk. You can preview 25% of the course for free. Once you purchase the course, if for some reason you are not happy with the course, Udemy offers a 30-day refund (based on Udemy's Refund Policy). So you have nothing to lose, sign up for this course and learn how to apply Spring Boot Unit TestingTarget AudienceJava Developers with Spring Boot experience

课程标签

0人关注该课程

主题相关的课程