JUnit 5
  • Introduction
  • Course Overview
  • Step 01 - Introduction to Unit Testing - Test Pyramid
  • Step 02 - First Junit Test - Red bar
  • Step 03 - Absence of failure is success
  • Step 04 - First Unit Test with JUnit - String length() method
  • Step 05 - Writing JUnit Assertions - assertNull and assertTrue
  • Step 06 - Writing Assertions for Arrays - assertArrayEquals
  • Step 07 - Setting up data for every test - @BeforeEach, @AfterEach
  • Step 08 - Setting up database connections - @BeforeAll, @AfterAll
  • Step 09 - Tip - Testing Exceptions with JUnit
  • Step 10 - Tip - @DisplayName and test methods need not be public
  • Step 11 - Basics of Parameterized tests
  • Step 12 - Advanced Paramaterized Tests with Csv Source
  • Step 13 - Tip - Giving a name to a Parameterized Test
  • Step 14 - Tip - Repeat same test multiple times
  • Step 15 - Tip - Unit Testing for Performance
  • Step 16 - Tip - Disable Unit Tests
  • Step 17 - Tip - Grouping Tests with @Nested
  • Step 18 - Tip - JUnit 5 = Platform + Jupiter + Vintage
  • Step 19 - Tip - JUnit 4 vs JUnit 5
  • Step 20 - Tip - JUnit Best Practices
  • Step 21 - Tip - JUnit Patterns - xunitpatterns
JUnit 4
  • Step 99 - JUnit 4 Section - First Version of the course
  • Getting Ready for Hello World
  • Your First JUnit Success - Green Bar
  • Refactoring : Improving the JUnit
  • assertTrue and assertFalse
  • @Before and @After
  • @BeforeClass and @AfterClass
  • Comparing Arrays - assertArrayEquals
  • Unit Testing Exceptions
  • Unit Testing for Performance
  • Parameterized JUnit Tests
  • Organizing Unit Tests into Suites
  • How do you write good Unit Tests?
  • Bonus Lecture
  • Conclusion