English Delivery Only: Unit Testing with JUnit [STA_JUNIT]

Tijdsduur
Locatie
Online
Startdatum en plaats

English Delivery Only: Unit Testing with JUnit [STA_JUNIT]

Global Knowledge Network Netherlands B.V.
Logo van Global Knowledge Network Netherlands B.V.
Opleiderscore: starstarstarstar_halfstar_border 7,5 Global Knowledge Network Netherlands B.V. heeft een gemiddelde beoordeling van 7,5 (uit 185 ervaringen)

Tip: meer info over het programma, prijs, en inschrijven? Download de brochure!

Startdata en plaatsen
computer Online: VIRTUAL
4 mrt. 2026 tot 6 mrt. 2026
Toon rooster
event 4 maart 2026, 10:30-18:00, VIRTUAL, NL253802.1
event 5 maart 2026, 10:30-18:00, VIRTUAL, NL253802.2
event 6 maart 2026, 10:30-18:00, VIRTUAL, NL253802.3
Beschrijving

Ontdek de verschillende trainingsmogelijkheden bij Global Knowledge

Online of op locatie er is altijd een vorm die bij je past.

Kies op welke manier jij of je team graag een training wilt volgen. Global Knowledge bied je verschillende trainingsmogelijkheden. Je kunt kiezen uit o.a. klassikaal, Virtueel Klassikaal (online), e-Learning en maatwerk. Met onze Blended oplossing kun je de verschillende trainingsvormen combineren.

OVERVIEW

*** Course delivered in English (UK - (GMT)) ***

Unit Testing with JUnit Course Overview

JUnit is the most popular and widely used Java unit testing framework.

This hands-on course,delivered using JUnit v5,comprises sessio

OBJECTIVES

Course Objectives

This course aims to provide the delegate with the knowledge to be able to design and code good quality,isolated unit tests with JUnit that exploit all the features of the JUnit framework.

AUDIENCE

Who will the Course Benefit?

This Unit Testing with JUnit course will benefit Java developers and testers who are new to JUnit and/or unit testing more generally.

CONTENT

Unit Testing with JUnit Training Course

Course Contents - DAY 1

Course …

Lees de volledige beschrijving

Veelgestelde vragen

Er zijn nog geen veelgestelde vragen over dit product. Als je een vraag hebt, neem dan contact op met onze klantenservice.

Nog niet gevonden wat je zocht? Bekijk deze onderwerpen: Unit Testing, Software Testing, Engels, Penetration testing en Acceptatie Testen.

Ontdek de verschillende trainingsmogelijkheden bij Global Knowledge

Online of op locatie er is altijd een vorm die bij je past.

Kies op welke manier jij of je team graag een training wilt volgen. Global Knowledge bied je verschillende trainingsmogelijkheden. Je kunt kiezen uit o.a. klassikaal, Virtueel Klassikaal (online), e-Learning en maatwerk. Met onze Blended oplossing kun je de verschillende trainingsvormen combineren.

OVERVIEW

*** Course delivered in English (UK - (GMT)) ***

Unit Testing with JUnit Course Overview

JUnit is the most popular and widely used Java unit testing framework.

This hands-on course,delivered using JUnit v5,comprises sessio

OBJECTIVES

Course Objectives

This course aims to provide the delegate with the knowledge to be able to design and code good quality,isolated unit tests with JUnit that exploit all the features of the JUnit framework.

AUDIENCE

Who will the Course Benefit?

This Unit Testing with JUnit course will benefit Java developers and testers who are new to JUnit and/or unit testing more generally.

CONTENT

Unit Testing with JUnit Training Course

Course Contents - DAY 1

Course Introduction

  • Administration and Course Materials
  • Course Structure and Agenda
  • Delegate and Trainer Introductions

Session 1: UNIT TESTING

  • What is unit testing
  • The purpose of unit testing
  • Terminology
  • The structure of a test
  • Assertions
  • Code coverage
  • Guidelines for writing good unit tests
  • Other types of testing

Session 2: GETTING STARTED WITH JUNIT

  • What is JUnit
  • The main features of JUnit
  • JUnit in IntelliJ
  • JUnit with Maven/Gradle
  • A simple unit test
  • Alternatives to JUnit

Session 3: ANNOTATIONS

  • @Test
  • @BeforeEach
  • @AfterEach
  • @BeforeAll
  • @AfterAll
  • @TestMethodOrder
  • @TestInstance
  • @DisplayName
  • @Disabled
  • @Timeout
  • @ExtendWith

Session 4: ASSERTIONS & ASSUMPTIONS

  • assertEquals
  • assertTrue/False
  • assertNull
  • assertThrows
  • assertArrayEquals
  • assertIterableEquals
  • assertLinesMatch
  • assertSame
  • assertInstanceOf
  • assertTimeout
  • assertNot*
  • assertAll
  • fail
  • assumeTrue/False
  • assumingThat

Unit Testing with JUnit Training Course

Course Contents - DAY 2

Session 5: CONDITIONAL TESTS

  • OS conditions
  • CRE conditions
  • System property conditions
  • Environment variable conditions
  • Custom conditions

Session 6: PARAMETERISED TESTS

  • What is a parameterised test
  • The junit-jupiter-params artefact
  • @ParameterizedTest
  • Consuming arguments
  • Argument sources
  • Argument conversion
  • Argument aggregation
  • Customising display names

Session 7: STUBS,MOCKS,& PROXIES

  • Dependencies
  • Test doubles/fake objects
  • Stubs
  • Mocks
  • Proxies

Session 8: MOCKITO

  • What is Mockito
  • The mockito-core and mockito-junit-jupiter artefacts
  • The Mockito JUnit extension
  • Creating a mock/spy
  • Setting expectations (when,then)
  • Argument matchers
  • Verifying behaviour
  • Spying
  • Annotations
  • Mocking static methods

Unit Testing with JUnit Training Course

Course Contents - DAY 3

Session 9: IO,DAO,& SERVLET TESTING

  • Testing methods that use IO streams
  • Testing DAOs by rolling back transactions
  • Moving business logic out of the Servlet to simplify testing

Session 10: TESTING MULTI-THREADED CODE

  • Sharing data among threads (a review)
  • The difficulty in testing concurrent applications
  • Testing the code with one thread
  • Testing the code with many threads
  • @RepeatedTest
  • The problem with non-deterministic tests
  • 3rd-party libraries
  • Best practices

Session 11: TEST-DRIVEN DEVELOPMENT (TDD)

  • What is TDD
  • The pros and cons of TDD
  • The three rules
  • The red green refactor lifecycle
Blijf op de hoogte van nieuwe ervaringen
Er zijn nog geen ervaringen.
Deel je ervaring
Heb je ervaring met deze cursus? Deel je ervaring en help anderen kiezen. Als dank voor de moeite doneert Springest € 1,- aan Stichting Edukans.

Er zijn nog geen veelgestelde vragen over dit product. Als je een vraag hebt, neem dan contact op met onze klantenservice.

Download gratis en vrijblijvend de informatiebrochure

(optioneel)
(optioneel)
(optioneel)
infoEr is een telefoonnummer vereist om deze informatieaanvraag in behandeling te nemen. (optioneel)
(optioneel)
(optioneel)
(optioneel)

Heb je nog vragen?

(optioneel)
We slaan je gegevens op om je via e-mail en evt. telefoon verder te helpen.
Meer info vind je in ons privacybeleid.