Skill Up Card - Course Bundles

Pricing is per delegate, giving you huge savings over the cost of individual courses.

  • UK = £2,000 + VAT per Skill Up Card
  • Ireland = €2,400 per Skill Up Card
skill up card logo - Nexus Human

Test Driven Development (TDD) and Unit Testing Essentials | Mocking, JUnit, Refactoring, Best Practices & More (TT3503)

4.6 out of 5 rating Last updated 11/12/2024   English

Jump to outline

Click "Enquire" below to find out more about this course

Interested in available dates? Would like to book a private session of this course for your company? Or for any other queries please simply fill out the form below.


Duration

3 Days

18 CPD hours

Overview

Working in a hands-on learning environment, guided by our expert team, you’ll explore:
The role of Unit Testing in software development and testing
How to write effective Unit Testing
The properties of effective unit tests
The benefits of the test-first and Test-Driven Development
Techniques and practices to aid in the successful adoption of Test-Driven Development
JUnit and the JUnit Test Runner interface.
How to use JUnit to drive the implementation of Java code.
The role of debugging when done in conjunction with tests.
The fundamentals of the TDD using Java, as well as its importance, uses, strengths and weaknesses.
Understand how JUnit affects your perspective on development and increases your focus on a task.
Good JUnit coding style.
How to Create well-structured JUnit programs.
How to Compile and execute programs using JUnit and DBUnit
How to extend testing with mock objects using Mockito.
Refactoring techniques available to make code as reusable/robust as possible.
Various testing techniques.

Description

Test Driven Development (TDD) and Unit Testing Essentials is a three-day, comprehensive hands-on test-driven development / JUnit / TDD training course geared for developers who need to get up and running with essential Test-driven development programming skills using JUnit and various open-source testing frameworks. Throughout the course you'll learn, explore and gain practical experience working with best practices for writing great programs in Java, using test-driven development techniques. This course quickly introduces you to the core features and benefits of JUnit. You'll leave this course armed with the skills required to leverage solid test driven development and unit testing techniques, using the latest industry techniques and best practices. Throughout the course, you ll work on a project with labs specifically oriented towards using TDD to implement a complex and multi-faceted web application that uses a database in its final form.

Test-Driven Development
  • Rationale for TDD
  • The process of TDD
  • Advantages to TDD
  • Side-effects of TDD
  • Tools to support TDD
Unit Testing Fundamentals
  • Purpose of Unit Testing
  • Good Unit Tests
  • Test Stages
  • Unit Testing Vs Integration Testing
  • Understanding Unit Testing
  • Frameworks
Jumpstart: JUnit 5.x
  • Understand and work with the features of JUnit
  • Write unit tests using @Test annotation
  • Test Result Verification (Assertions)
  • Manage fixtures using @BeforeEach, @AfterEach, @BeforeAll and @AfterAll annotations
  • Maven setup using Surefire plugin
Annotations
  • Use @DisplayName to specify a custom name for the test
  • Check for exceptions thrown by test
  • Use @Disabled to prevent a test class or method from running
  • Use timeouts to fail test that take longer than required
  • Test Execution Order
Hamcrest
  • Learn the notation of assertThat
  • Know the objective of Hamcrest library
  • Use Hamcrest's logical and object matchers
  • Use Hamcrest's number and collection matchers
Parameterized Tests
  • The @ParameterizedTest annotation
  • A parameterized test to test code under several conditions
  • Define different sources for test
  • data (@ValueSource, @CsvSource, @CsvFileSource,@EnumSource, @MethodSource, @ArgumentSource)
Advanced Features
  • JUnit 4 vs JUnit 5
  • Nested Unit Tests
  • Repeated Tests
  • JUnit Extensions
  • ExecutionConditions
  • Lambda Support
  • Grouped Assertions
JUnit Best Practices
  • 'Good' Tests
  • Bad Smell
  • White-Box Unit Testing
  • Black-Box Unit Testing
  • Automation and Coverage
Mocking of Components
  • Why We use Test Dummies
  • Working with Mock Objects
  • Using Mocks with the User Interface
  • Mock Object Strategies
Mock Objects and Mockito
  • Mockito Description and Features
  • Mockito Object Lifecycle
  • JUnit 5 and Mockito Dependency Injection
  • Stubs Using ArgumentMatchers
  • Verifying Behavior in Mockito
  • Partial Mock Objects
  • The Spy annotation
PowerMock
  • PowerMock Description and Features
  • Using PowerMockito
  • @PrepareForTest
  • Mocking a final class or final method
  • Mocking a Static Method
State-based vs. Interaction-based Testing
  • State-based Testing
  • Interaction-based Testing
  • Mock Objects Support Each Approach
  • Three Areas to Check in a Test
Improving Code Quality Through Refactoring
  • Refactoring Overview
  • Refactoring and Testing
  • Refactoring to Design Patterns
Database Testing: DbUnit
  • Setting up DbUnit
  • Defining a Dataset File in XML, CSV or Excel
  • Writing a DbUnit Test Class
  • Assert the results
  • Use the FailureHandler and ValueComparer
  • Using Date and Time in test sets
  • Export a data set
Additional course details:

Nexus Humans Test Driven Development (TDD) and Unit Testing Essentials | Mocking, JUnit, Refactoring, Best Practices & More (TT3503) training program is a workshop that presents an invigorating mix of sessions, lessons, and masterclasses meticulously crafted to propel your learning expedition forward.

This immersive bootcamp-style experience boasts interactive lectures, hands-on labs, and collaborative hackathons, all strategically designed to fortify fundamental concepts.

Guided by seasoned coaches, each session offers priceless insights and practical skills crucial for honing your expertise. Whether you're stepping into the realm of professional skills or a seasoned professional, this comprehensive course ensures you're equipped with the knowledge and prowess necessary for success.

While we feel this is the best course for the Test Driven Development (TDD) and Unit Testing Essentials | Mocking, JUnit, Refactoring, Best Practices & More (TT3503) course and one of our Top 10 we encourage you to read the course outline to make sure it is the right content for you.

Additionally, private sessions, closed classes or dedicated events are available both live online and at our training centres in Dublin and London, as well as at your offices anywhere in the UK, Ireland or across EMEA.

FAQ for the Test Driven Development (TDD) and Unit Testing Essentials | Mocking, JUnit, Refactoring, Best Practices & More (TT3503) Course

Available Delivery Options for the Test Driven Development (TDD) and Unit Testing Essentials | Mocking, JUnit, Refactoring, Best Practices & More (TT3503) training.
  • Live Instructor Led Classroom Online (Live Online)
  • Traditional Instructor Led Classroom (TILT/ILT)
  • Delivery at your offices in London or anywhere in the UK
  • Private dedicated course as works for your staff.
How many CPD hours does the Test Driven Development (TDD) and Unit Testing Essentials | Mocking, JUnit, Refactoring, Best Practices & More (TT3503) training provide?

The 3 day. Test Driven Development (TDD) and Unit Testing Essentials | Mocking, JUnit, Refactoring, Best Practices & More (TT3503) training course give you up to 18 CPD hours/structured learning hours. If you need a letter or certificate in a particular format for your association, organisation or professional body please just ask.

What is the correct audience for the Test Driven Development (TDD) and Unit Testing Essentials | Mocking, JUnit, Refactoring, Best Practices & More (TT3503) training?

This programming course is for students with hands-on Java development experience. Attending titles may include Software Developers and Programmers, Agile Practitioners, Quality Assurance Professionals, Software Testers, Product Owners, Project Managers, IT Managers or Software Engineers.

Do you provide training for the Test Driven Development (TDD) and Unit Testing Essentials | Mocking, JUnit, Refactoring, Best Practices & More (TT3503).

Yes we provide corporate training, dedicated training and closed classes for the Test Driven Development (TDD) and Unit Testing Essentials | Mocking, JUnit, Refactoring, Best Practices & More (TT3503). This can take place anywhere in Ireland including, Dublin, Cork, Galway, Northern Ireland or live online allowing you to have your teams from across Ireland or further afield to attend a single training event saving travel and delivery expenses.

What is the duration of the Test Driven Development (TDD) and Unit Testing Essentials | Mocking, JUnit, Refactoring, Best Practices & More (TT3503) program.

The Test Driven Development (TDD) and Unit Testing Essentials | Mocking, JUnit, Refactoring, Best Practices & More (TT3503) training takes place over 3 day(s), with each day lasting approximately 8 hours including small and lunch breaks to ensure that the delegates get the most out of the day.

Why are Nexus Human the best provider for the Test Driven Development (TDD) and Unit Testing Essentials | Mocking, JUnit, Refactoring, Best Practices & More (TT3503)?
Nexus Human are recognised as one of the best training companies as they and their trainers have won and hold many awards and titles including having previously won the Small Firms Best Trainer award, national training partner of the year for Ireland on multiple occasions, having trainers in the global top 30 instructor awards in 2012, 2019 and 2021. Nexus Human has also been nominated for the Tech Excellence awards multiple times. Learning Performance institute (LPI) external training provider sponsor 2024.
Is there a discount code for the Test Driven Development (TDD) and Unit Testing Essentials | Mocking, JUnit, Refactoring, Best Practices & More (TT3503) training.

Yes, the discount code PENPAL5 is currently available for the Test Driven Development (TDD) and Unit Testing Essentials | Mocking, JUnit, Refactoring, Best Practices & More (TT3503) training. Other discount codes may also be available but only one discount code or special offer can be used for each booking. This discount code is available for companies and individuals.

Jump to dates

Training Insurance Included!

When you organise training, we understand that there is a risk that some people may fall ill, become unavailable. To mitigate the risk we include training insurance for each delegate enrolled on our public schedule, they are welcome to sit on the same Public class within 6 months at no charge, if the case arises.

What people say about us


Top

}