Unit Testing using JUnit
Course
In London-City
Description
-
Type
Course
-
Location
London-city
This JUnit course focuses on the fundamental concepts of Unit Testing as part of the Software Development Life Cycle and covers the core features of JUnit which is the most popular framework for implementing Unit Testing within Java projects. Version 4 of the JUnit Framework is used in this course which is the most current version.This hands-on course shows delegates how to design and develop JUnit Test Cases for a variety of Java modules. Delegates will learn how to build related groups of Test Cases into Test Suites that can be run together to test multiple Java classes. Delegates will also learn how to integrate JUnit with build utilities such as Apache Ant and to customise test reports.The use of Mocks and Stubs to isolate the system under test from external dependencies will also be covered and will be used to test Data Access Objects and Web Responses.Who will the Course Benefit?This Unit Testing with JUnit course is aimed at staff and consultants working as part of a development team using Unit Testing including Programmers, Testers, Subject Matter Experts, Project Managers and anyone who needs a good understanding of the use of JUnit for Unit Testing within software development. Learning Objectives By the end of the course delegates should be able to: Describe the concepts of testingDescribe JUnitWrite test casesUse JUnit annotations and assertionsCombine test cases into test suitesExecute test cases/suites using test runnersDebug test failuresProduce test reportsDescribe and use stubsDescribe and use mocksTest Java Persistence API (JPA) Data Access Objects (DAOs)Validate XML and HTML web responses Skills GainedThe delegates will practise:Installing and Configuring JUnitDesigning Unit TestsWriting Test ClassesIntegrating with Apache MavenStubbing and MockingTesting Data Access Objects (DAOs)Testing XML/HTML Web Responses
Facilities
Location
Start date
Start date
About this course
Pre-Requisite CoursesJava Programming
Reviews
Subjects
- Project
- Web
- HTML
- Apache
- XML
- Java
- Testing
- XML training
- Access
Course programme
- Administration and Course Materials
- Course Structure and Agenda
- Delegate and Trainer Introductions
- Introduction to Unit Testing
- Other Categories of Software Testing
- Introduction to Unit Test Structure and Organisation
- Introduction to Test Doubles
- Test Coverage
- Guidelines for Good Unit Tests
- Main Features of JUnit
- JUnit Syntax
- Integrating JUnit with Eclipse
- Test Project Structure
- Test Case Structure
- Junit Annotations
- JUnit Assertions
- Parameterised Junit Tests
- JUnit Integration with Apache Ant
- JUnit Integration with Apache Maven
- Test Stubs
- Command line arguments
- Stubbing a Database Connection with JUnit
- Stubbing a HTTP Connection with JUnit
- State vs Interaction Tests
- Test Mocks
- The Phases of Mocking
- Mocking using JUnit and Mockito
- Strategies for Testing Data Access Objects
- Testing Entity Mappings using an In-Memory Database with JUnit and Hibernate
- Validating XML against a Schema
- Testing HTML Responses using HTMLUnit
- Testing XML Responses using XMLUnit
Unit Testing using JUnit
