JUnit and Mockito Unit Testing for Java Developers

所在平台: Udemy

课程主页: https://www.udemy.com/course/junit-unit-testing-for-java-developers/

课程评论:没有评论

第一个写评论        关注课程

课程简介

课程名称:JUnit和Mockito单元测试为Java开发者 课程概述:您是否希望通过实际演示深入了解JUnit和Mockito的使用?想要一本简单明了、不含废话的单元测试指南,包括最佳实践的理解?如果您正为理解单元测试而苦恼,希望有一个友好的指导来帮助您从头到尾掌握这一知识,那么这门课程是您理想的选择。无论您是刚入行的初级Java开发者,还是需要更新单元测试能力的经验丰富的开发者,这门课程都能帮助您迅速上手。 课程内容包括以下主题: 1. 基础知识 - 提供多年经验总结的最佳实践,帮助您了解API未提及的重要内容。 2. 安装和设置/项目创建 - 帮助您创建使用JUnit的项目,并介绍必要的项目结构和约定。 3. 使用JUnit编写测试 - 详细讲解如何使用JUnit编写单元测试,涵盖最佳实践以及JUnit的工作原理。 4. 使用Mockito编写模拟对象的单元测试 - 快速入门Mockito的使用,以测试典型的分层架构,并展示如何编码。 5. 使用Hamcrest断言库 - 讲解如何利用Hamcrest断言库进行更强大的断言,提高单元测试的表达力。 此外,课程还涵盖以下主题: - Arrange/Act/Assert - 断言及其特征 - 测试约定 - Java项目结构 - 使用Maven创建JUnit项目 - IDE中运行单元测试 - 测试失败处理 - JUnit注解 - 测试装置 - Mockito基础知识 - 分层架构原则 - 测试简单分层架构 - 使用JUnit断言API和Hamcrest - 解析Hamcrest测试失败等。 这门课程将引导您从基础开始,快速掌握使用JUnit、Mockito和Hamcrest编写单元测试的技能。如果您希望在新工作中运用这些技能,或学习行业标准工具以增强竞争力,或想迅速提升单元测试知识,这门课程都非常适合您。通过解锁JUnit和Mockito的运作机制,您将能够更好地测试您的Java项目,同时享受这个过程!我期待着教您有关JUnit、Mockito和单元测试的所有知识!

课程评论(0条)

课程详情

Do you want to get hands on demonstrations of JUnit and Mockito in action, want a simple no-fluff guide to how unit testing works including getting an understanding of best practices along the way?Are you struggling to understand unit testing and would like a friendly guide to help you understand it all completely from the ground up?Maybe you're a junior Java developer who is just starting out and you need a hands-on guide to JUnit and Mockito unit testing to get up and running quickly?Or you might be an old hand at Java who has been out of practice and needs to level up your unit testing and JUnit and Mockito knowledge ready for a new project?Then this course is for you!We cover the following themes:Foundations - this is all the good stuff that's been distilled down through the years - it's best practices and gets you up and running with knowing the stuff the APIs don't tell youInstallation and Set Up / Project Creation - we get you creating a project which uses JUnit and introduce you to the project structure and conventions you need to knowWriting Tests with JUnit - we cover exactly how to write unit tests with JUnit in this section and get a feel for the API together, covering best practices and how JUnit works along the wayWriting mock objects based unit tests with Mockito - we cover a quick start on getting up and running with Mockito to test a simple layered architecture you might find in a webapp (also coding the presentation, business and data layers in preparation to demonstrate this too!) then we demonstrate using Mockito to write tests for itUsing the Hamcrest assertions library - we cover how you can do more powerful assertions in your unit tests by harnessing the power of the Hamcrest assertions library that comes shipped with JUnit.And the following topics:Arrange/Act/AssertAssertionsTesting Conventions Good test characteristicsJava project structureCreating a JUnit project with MavenRunning unit tests in the IDETest failuresJUnit's fail fast mechanismJUnit's annotationsTest fixturesMock objects and their use in unit testingMockito basicsLayered architecture principlesTesting a simple layered architecture with Mockito and JUnitUnderstanding the different types of assertionsUsing the JUnit Assertions API and HamcrestUsing Hamcrest matchersComposing Hamcrest matchers and creating complex, yet readable assertionsReading Hamcrest test failuresAnalysing the production code to guide you to writing unit testsand much, much more!This course takes you straight from the beginning and gets you up and running to be fully proficient at writing unit tests using JUnit, Mockito and Hamcrest in quick time. Maybe you've started a new job where they use it to test their applications, or you're learning industry-standard tools to better place you ahead of the competition or you just want to ramp up your unit testing knowledge quickly in a no-fuss guide - then this course is for you!Ultimately, by unlocking the mechanics of how JUnit and Mockito work in front of your eyes, you should be able to better test your Java projects with the frameworks and have fun doing so!I look forward to teaching you all about JUnit, Mockito and unit testing inside! ;)

课程标签

0人关注该课程

主题相关的课程