|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/exercises-in-unit-testing-for-java-developers/
课程评论:没有评论
**课程名称:** Java开发者的单元测试练习 **课程概述:** 本课程强调单元测试的重要性,尤其侧重于其作为软件开发与软件测试交叉点的预防性作用。课程通过实践环节,利用Eclipse IDE和JUnit进行单元测试。 **核心内容:** * **单元测试的重要性:** 理解单元测试在预防性维护中的关键作用。 * **JUnit:** 学习如何使用JUnit独立执行测试用例,以及其提供的特定注解。 * **Eclipse IDE与JUnit-Tools:** 掌握Eclipse IDE中的JUnit-Tools插件,该插件能够快速方便地生成测试类。 * **断言(Assertions):** 学习JUnit提供的断言机制,用于验证被测方法的输出。特别关注如何处理测试用例预期结果为异常的情况。 * **关键概念:** 理解并熟练使用`expected`和`actual`这两个关键变量名来编写断言。 **课程结构:** * 引言 * 软件测试概述 * 单元测试 * 集成测试 * 为何要测试代码? * 开发者的最佳实践 * JUnit实战Workshop * 结论 * 推荐资源 **前提条件:** * Java 8+ * Eclipse IDE (或任何您选择的IDE) * JUnit 5 * Maven
This course points out the importance of unit testing, from a preventive point of view, since it is a task that represents the intersection between software development and software testing, corroborated by a workshop with a couple of exercises using Eclipse IDE and JUnit.Indeed, JUnit allows the execution of test cases independently, using specific annotations.Eclipse IDE provides a useful plugin called JUnit-Tools that generates test classes in a easy and fast manner.Assertions (provided by JUnit) are essential when it comes to verifying results produced by tested methods. However, sometimes, test cases' expected result is an Exception. JUnit, provides the necessary semantic to address this situation. It is important to note that expected and actual are two important keywords to use for variables when working with assertions.This course is outlined as the following:IntroductionSoftware TestingUnit TestingIntegration TestingWhy Test code ?Best approach for developers ?JUnit WorkshopConclusionResources:"Clean Code: A Handbook of Agile Software Craftsmanship" by Robert C. Martin (Fifteenth printing, September 2015);"Head First Java, Second Edition" by Kathy Sierra & Bert Bates;"Software Engineering, Ninth Edition" by Ian Sommerville.Workshops prerequisites:Java 8+Eclipse IDE (or any IDE of your choice)JUnit 5Maven