Unit Test Lecture
To Read
Sections 7.1-7.3 of A First Course in Object Oriented Development.
Recording, Part 1
Content, Part 1
00:00 Introduction to the lecture
00:35 Introduction to unit tests
08:36 Required properties of tests
11:26 A first example of a unit test
18:02 JUnit
25:15 How to write tests with NetBeans. Note! Any IDE can be used, writing tests is equally easy with any other major IDE.
32:19 Exercise in testing
37:33 Unit test best practices
Recording, Part 12
Content, Part 2
00:00 How to organize the tests
07:05 What shall be tested?
11:42 Exercise in finding what to test
18:07 When testing is difficult
28:52 Exercise in writing tests when testing is difficult
35:04 How to manage testing in a software project
Solutions to Exercies
Here's the NetBeans project that was used as an example during the lecture, junit5intro.zip.