Course Code: unittestbspk
Duration: 21 hours
Prerequisites:

-

Overview:

-

Course Outline:

Day 1: Introduction to Unit Testing

Fundamentals of Testing and the Testing Pyramid

  • Understanding the significance of testing in software development - the test pyramid
  • Exploring the benefits of effective testing practices
  • TDD: theory, technique, implementation, benefits

Introduction to Unit Testing and JUnit

  • Overview and basics of the JUnit framework for Java
  • Writing and executing basic unit tests using JUnit

Hands-on Practical with Junit 

  • Practical exercises focusing on writing and running JUnit test cases
  • Utilizing assertions and annotations in JUnit for effective testing


Day 2: Advanced Unit Testing with Mockito

Understanding Mockito

  • Introduction to Mockito library for mocking in Java unit tests
  • Mocking dependencies and interactions using Mockito

Practical Mockito Implementation

  • Hands-on implementation of Mockito for mocking in unit tests
  • Verifying behavior and using stubbing effectively with Mockito

Day 3: Exploring the testing pyramid and testing with BDD and Cucumber

  • Testing types in the testing pyramod: overview on integration and E2E testing
  • Overview on non functional testing: performance & scalability, accessibility, security
  • BDD in theory: from the business requirements via the executable examples to the living documentation
  • BDD in practical and on different levels