Wrap-up

Introduction to Testing in Java

Maria Milusheva

Senior Software Engineer

Chapter 1 Recap

Chapter 1.1:
  • Introduced the concept of software testing
  • Discussed the benefits of testing
  • Reviewed some edge cases we should always test
Chapter 1.2:
  • Introduced testing with JUnit
  • Learned about JUnit 5 syntax like @Test
  • Practiced assertEquals()
Chapter 1.3:
  • Learned to define unit testing
  • Studied additional assert statements: assertTrue(), assertInstanceOf(), assertNull()
Introduction to Testing in Java

Chapter 2 Recap

Chapter 2.1:
  • Learned about software dependencies
  • Defined integration testing as testing how components work together
  • Practiced using the European Central Bank rates
Chapter 2.2:
  • Discovered mocks as a way to control test conditions
  • Studied Mockito and its syntax: mock(), when(), .thenReturn()
Chapter 2.3:
  • Learned verify() to track mock interactions
  • Practiced using database examples
Introduction to Testing in Java

Chapter 3 Recap

Chapter 3.1:
  • Used @ParameterizedTest to shorten test classes and reduce repetition
  • Practiced @ValueSource and @CsvSource
Chapter 3.2:
  • Discovered ways to pass more complex arguments to tests using @MethodSource and Arguments.of()
  • Encountered the @BeforeEach annotation
Chapter 3.3:
  • Practiced thinking with tests first
  • Defined Test-Driven Development as the practice of writing tests before implementation
  • Learned to fix bugs with TDD
Introduction to Testing in Java

Further learning:

Interesting talks:
Advanced testing study:
Introduction to Testing in Java

Congratulations!

Introduction to Testing in Java

Preparing Video For Download...