Opleiding: Test Driven Development with JUnit

The course Test Driven Development with JUnit will teach participants the principles of and reasoning behind Test Driven Development and the role of unit testing therein.

JUnit Library

The course Test Driven Development with JUnit starts with an overview of the different types of testing and their use, detailed attention is given to the workings of the JUnit library, the integration of this library in Eclipse and the use of assertions in Test Cases and Test Suites.

Test Fixtures

Fixtures used for the formulation of pre- and postconditions of Test Cases are also discussed as is the automation of tests and the concept of continuous integration.

TDD Methodology

Next the course Test Driven Development with JUnit discusses the methodology of Test Driven Development (TDD), the three rules of TDD and the steps in TDD are explained as are the benefits and limitations of TDD. The participants will exercise TDD by trying to solve so called code Kata’s, small programming problems, using TDD.

Stubs en Mocks

After an overview of the importance of writing clean code, the course Test Driven Development with JUnit explains the use of stubs and mocks. These stubs and mocks are used as replacement for code that is not ready yet in a testing environment and can be replaced by real code in a production environment. In this respect the Mockito library is used as an example of a mocking framework.

Database Testing

Finally the course Test Driven Development with JUnit pays attention to database unit testing using DBUnit and the testing of Web Applications using HTMLUnit.

Audience Test Driven Development with JUnit

The course Test Driven Development met JUnit is intended for experienced Java developers who want to apply JUnit for Test Driven Development.

Prerequisites Training TDD with JUnit

Knowledge of and experience with programming in Java is required to join the course Test Driven Development with JUnit.

Realization Test Driven Development with JUnit

The theory is covered on the basis of presentation slides and is interspersed practical exercises. Demos are used to clarify the discussed concepts. The course material is in English.

Certification Course TDD with JUnit

Participants receive an official certificate Test Driven Development with JUnit after successful completion of the course.

Modules

Module 1 : Unit Testing

  • What is Unit Testing?
  • Benefits of Unit Testing
  • Manual Testing
  • Automated Testing
  • Time to Test
  • Unit Test Example
  • Unit Testing Best Practices
  • Testing Frameworks
  • Other Types of Testing
  • Continuous Integration
  • Regression Testing
  • Usability Testing
  • Exploratory Testing
  • Acceptance Tests
  • Concurrency Testing

Module 2 : JUnit

  • What is JUnit?
  • JUnit Features
  • JUnit View in Eclipse
  • JUnit Test Code
  • JUnit Classes
  • Test Cases
  • TestCase Class
  • TestResult Class
  • JUnitCore
  • Assert Statements
  • Fixtures
  • Test Suites
  • Annotations
  • Special Cases
  • Testing for Exceptions

Module 3 : Test Driven Development

  • What is Test Driven Development?
  • Traditional Testing versus TDD
  • Three Rules of TDD
  • Steps in TDD
  • Test Cycles
  • Benefits of TDD
  • Limitations of TDD
  • Testing versus Design
  • TDD Adaptation
  • Behavior Driven Development
  • Designing for Testing
  • Code Kata’s
  • Example Kata
  • Domain Model
  • Kata Test and Implementation

Module 4 : Clean Code

  • What is Clean Code?
  • Clean Code Principles
  • Technical Debt
  • Meaningful Naming
  • Naming Guidelines
  • What to Avoid
  • Functions
  • Abstraction Level
  • Switch Statements
  • Function Arguments
  • Avoid Side Effects
  • Command Query Separation
  • Good Comments
  • Bad Comments
  • Code Smells

Module 5 : Stubs and Mocks

  • Using Test Doubles
  • What are Stubs?
  • Stub Usage
  • Method under Test
  • Stub HTTP Connection
  • Stubbing Web Server
  • Use Embedded Web Server
  • Stubbing Server Resources
  • Mock Object
  • Simple Mock Example
  • Collaborating Objects
  • Mock Implementation
  • Test using Mock
  • Anti Patterns
  • Using Mockito

Module 6 : Database Unit Testing

  • Unit Testing Data Access
  • Types of DB Unit Testing
  • Database Integration Unit Testing
  • DB Unit
  • Advantages of DBUnit
  • DB Unit Life Cycle
  • Core Components
  • IDataSet Implementations
  • Concrete Database Operations
  • Presetting Database Data
  • Extract Data From Database
  • DBUnit Fixture
  • Setup Tables and Dataset
  • Data Access Test Cases
  • Abstract Class Fixture

Module 7 : Web Application Testing

  • Testing Web Applications
  • What is HTMLUnit
  • HTMLUnit Features
  • Simple HTMLUnit Test
  • Imitating Browsers
  • HTML Form Test
  • Finding Specific Elements
  • Button Click Test
Meer...
€1.499
ex. BTW
Aangeboden door
SpiralTrain
Onderwerp
Test Driven Development (TDD)
Software Testing
Niveau
Duur
2 dagen
Looptijd
12 dagen
Taal
en
Type product
cursus
Lesvorm
Klassikaal
Aantal deelnemers
Max: 12
Tijdstip
Overdag
Tijden en locaties
Amsterdam
do 4 jun. 2026
Eindhoven
do 4 jun. 2026
Houten
do 4 jun. 2026
Rotterdam
do 4 jun. 2026
Utrecht
do 4 jun. 2026
Zwolle
do 4 jun. 2026
Amsterdam
do 6 aug. 2026
Eindhoven
do 6 aug. 2026
Houten
do 6 aug. 2026
Rotterdam
do 6 aug. 2026
Utrecht
do 6 aug. 2026
Zwolle
do 6 aug. 2026
Amsterdam
do 8 okt. 2026
Eindhoven
do 8 okt. 2026
Houten
do 8 okt. 2026
Rotterdam
do 8 okt. 2026
Utrecht
do 8 okt. 2026
Zwolle
do 8 okt. 2026
Amsterdam
do 3 dec. 2026
Eindhoven
do 3 dec. 2026
Houten
do 3 dec. 2026
Rotterdam
do 3 dec. 2026
Utrecht
do 3 dec. 2026
Zwolle
do 3 dec. 2026
Amsterdam
do 4 feb. 2027
Eindhoven
do 4 feb. 2027
Houten
do 4 feb. 2027
Rotterdam
do 4 feb. 2027
Utrecht
do 4 feb. 2027
Zwolle
do 4 feb. 2027
Amsterdam
do 8 apr. 2027
Eindhoven
do 8 apr. 2027
Houten
do 8 apr. 2027
Rotterdam
do 8 apr. 2027
Utrecht
do 8 apr. 2027
Zwolle
do 8 apr. 2027
Amsterdam
do 3 jun. 2027
Eindhoven
do 3 jun. 2027
Houten
do 3 jun. 2027
Rotterdam
do 3 jun. 2027
Utrecht
do 3 jun. 2027
Zwolle
do 3 jun. 2027
Amsterdam
do 5 aug. 2027
Eindhoven
do 5 aug. 2027
Houten
do 5 aug. 2027
Rotterdam
do 5 aug. 2027
Utrecht
do 5 aug. 2027
Zwolle
do 5 aug. 2027
Amsterdam
do 7 okt. 2027
Eindhoven
do 7 okt. 2027
Houten
do 7 okt. 2027
Rotterdam
do 7 okt. 2027
Utrecht
do 7 okt. 2027
Zwolle
do 7 okt. 2027
Amsterdam
do 9 dec. 2027
Eindhoven
do 9 dec. 2027
Houten
do 9 dec. 2027
Rotterdam
do 9 dec. 2027
Utrecht
do 9 dec. 2027
Zwolle
do 9 dec. 2027
Amsterdam
do 3 feb. 2028
Eindhoven
do 3 feb. 2028
Houten
do 3 feb. 2028
Rotterdam
do 3 feb. 2028
Utrecht
do 3 feb. 2028
Zwolle
do 3 feb. 2028
Keurmerken aanbieder
NRTO
UWV scholingsvoucher