Szkolenia Capstone Courseware

Cel szkolenia

kod: CC-191

This course introduces the experienced Java programmer to testing and test-driven development practices using JUnit. We work from the basics of JUnit as a tool, to best practices for writing effective and maintainable tests. The course is not strictly a TDD course, but we introduce TDD and take students through an illustrative case study. We discuss the importance of mocking and explore testing techniques using Mockito. Finally, we discuss concerns and strategies for testing enterprise components in the Java EE context.

Learning Objectives

  • Build unit tests for Java classes using JUnit.
  • Write effective tests, and design classes for testability.
  • Understand test-driven development (TDD) and use dynamic mocking to support isolated testing.
  • Develop effective testing strategies for Java-EE components.

Plan szkolenia Rozwiń listę

  1. Automated Unit Testing with JUnit
    • Automated Testing
    • JUnit and Related Tools
    • The @Test Annotation
    • The Assert Class Utility
    • Test Runners
    • Lifecycle Methods
    • Expecting Exceptions
    • Test Suites
  2. Writing Tests
    • Test Granularity
    • Reusing Test Logic
    • Recording and Comparing Output
    • Test Isolation
    • Controlling the Test Environment
    • Managing Dependencies
    • Non-Invasive Testing
    • Designing for Testability
    • Factories
    • Testing and Threads
  3. Test-Driven Development
    • Writing the Test First
    • The TDD Cycle
    • Advantages of TDD
    • Resistance to TDD
    • A Case Study
  4. Mocking
    • Mock Objects in Testing
    • Mock Objects in Test-Driven Development
    • Static vs. Dynamic Mocks
    • Stubbing
    • Verifying
    • Matching and Capturing
    • Using a Spy
    • Partial Mocking
  5. Testing Enterprise Components
    • Challenges in Java-EE Testing
    • The Java Naming and Directory Interface
    • Mocking JNDI
    • Java-EE Dependency Injection
    • Testing Persistence Components
    • Mocking JDBC and JPA
    • Test Databases
    • Auto-Rollback
    • Verifying Transactionality and Cleanup
    • Web Components
    • Mocking the Web Container
    • Asynchronous Messaging
    • Mocking the JMS Session
    • Web-Services APIs: JAX-WS and JAX-RS
Pobierz konspekt szkolenia w formacie PDF

Dodatkowe informacje

Wymagania wstępne

Solid Java programming experience is essential -- especially object-oriented use of the language. Language features and techniques that are integral to some lab exercises include interfaces and abstract classes, threading, generics and collections, and recursive methods. Course “103 Java Programming," is excellent preparation.

Poziom trudności
Czas trwania 2 dni
Certyfikat

The participants will obtain certificates signed by Capstone Courseware.

Prowadzący

Authorized Capstone Courseware Trainer.

Pozostałe szkolenia Capstone Courseware | Java Programming

Szkolenia powiązane tematycznie

Java

Programowanie

  • konspekt szkolenia: AZ-204T00 Developing Solutions for Microsoft Azure

    AZ-204T00 Developing Solutions for Microsoft Azure szkolenie Microsoft

    dostępne terminy szkolenia
    cena od: 3900 PLN
    czas: 5 dni
    poziom trudności: 3 z 6
    kod: AZ-204T00
    wersja: A
    2025-08-18 | Kraków / Wirtualna sala HYBRID: szkolenie dostępne w wersji stacjonarnej we wskazanej lokalizacji lub w trybie zdalnym, w zależności od preferencji uczestnika zarezerwuj
    2025-08-25 | Warszawa / Wirtualna sala HYBRID: szkolenie dostępne w wersji stacjonarnej we wskazanej lokalizacji lub w trybie zdalnym, w zależności od preferencji uczestnika zarezerwuj
    2025-09-15 | Warszawa / Wirtualna sala HYBRID: szkolenie dostępne w wersji stacjonarnej we wskazanej lokalizacji lub w trybie zdalnym, w zależności od preferencji uczestnika zarezerwuj
    2025-10-20 | Kraków / Wirtualna sala HYBRID: szkolenie dostępne w wersji stacjonarnej we wskazanej lokalizacji lub w trybie zdalnym, w zależności od preferencji uczestnika zarezerwuj
    2025-11-17 | Warszawa / Wirtualna sala HYBRID: szkolenie dostępne w wersji stacjonarnej we wskazanej lokalizacji lub w trybie zdalnym, w zależności od preferencji uczestnika zarezerwuj
  • konspekt szkolenia: AZ-220T00 Microsoft Azure IoT Developer

    AZ-220T00 Microsoft Azure IoT Developer szkolenie Microsoft

    dostępne terminy szkolenia
    cena od: 3500 PLN
    czas: 4 dni
    poziom trudności: 3 z 6
    kod: AZ-220T00
    wersja: A
    2025-06-23 | Warszawa / Wirtualna sala HYBRID: szkolenie dostępne w wersji stacjonarnej we wskazanej lokalizacji lub w trybie zdalnym, w zależności od preferencji uczestnika zarezerwuj
    2025-07-29 | Warszawa / Wirtualna sala HYBRID: szkolenie dostępne w wersji stacjonarnej we wskazanej lokalizacji lub w trybie zdalnym, w zależności od preferencji uczestnika zarezerwuj
    2025-09-23 | Kraków / Wirtualna sala HYBRID: szkolenie dostępne w wersji stacjonarnej we wskazanej lokalizacji lub w trybie zdalnym, w zależności od preferencji uczestnika zarezerwuj
    2025-10-28 | Warszawa / Wirtualna sala HYBRID: szkolenie dostępne w wersji stacjonarnej we wskazanej lokalizacji lub w trybie zdalnym, w zależności od preferencji uczestnika zarezerwuj
    2025-12-23 | Kraków / Wirtualna sala HYBRID: szkolenie dostępne w wersji stacjonarnej we wskazanej lokalizacji lub w trybie zdalnym, w zależności od preferencji uczestnika zarezerwuj
  • konspekt szkolenia: MB-500T00 Microsoft Dynamics 365: Finance and Operations Apps Developer

    MB-500T00 Microsoft Dynamics 365: Finance and Operations Apps Developer szkolenie Microsoft

    dostępne terminy szkolenia
    cena od: 4300 PLN
    czas: 5 dni
    poziom trudności: 3 z 6
    kod: MB-500T00
    wersja: A
    2025-06-23 | Warszawa / Wirtualna sala HYBRID: szkolenie dostępne w wersji stacjonarnej we wskazanej lokalizacji lub w trybie zdalnym, w zależności od preferencji uczestnika zarezerwuj
    2025-07-07 | Warszawa / Wirtualna sala HYBRID: szkolenie dostępne w wersji stacjonarnej we wskazanej lokalizacji lub w trybie zdalnym, w zależności od preferencji uczestnika MTG: możliwy termin gwarantowany zarezerwuj
    2025-08-04 | Kraków / Wirtualna sala HYBRID: szkolenie dostępne w wersji stacjonarnej we wskazanej lokalizacji lub w trybie zdalnym, w zależności od preferencji uczestnika zarezerwuj
    2025-09-01 | Warszawa / Wirtualna sala HYBRID: szkolenie dostępne w wersji stacjonarnej we wskazanej lokalizacji lub w trybie zdalnym, w zależności od preferencji uczestnika zarezerwuj
    2025-10-06 | Kraków / Wirtualna sala HYBRID: szkolenie dostępne w wersji stacjonarnej we wskazanej lokalizacji lub w trybie zdalnym, w zależności od preferencji uczestnika zarezerwuj
    2025-11-03 | Warszawa / Wirtualna sala HYBRID: szkolenie dostępne w wersji stacjonarnej we wskazanej lokalizacji lub w trybie zdalnym, w zależności od preferencji uczestnika zarezerwuj
Formularz kontaktowy

Prosimy o wypełnienie poniższego formularza, jeśli chcą Państwo uzyskać więcej informacji o powyższym szkoleniu.






* pola oznaczone (*) są wymagane

Informacje o przetwarzaniu danych przez Compendium – Centrum Edukacyjne Spółka z o.o.

CENA SZKOLENIA OD 2250 PLN NETTO

Najbliższe szkolenia Capstone Courseware

Harmonogram szkoleń
Capstone Courseware