Unit Testing using JUnit
 
 

Unit Testing using JUnit

Course Code: JUNIT

Duration: 2 days

Our training courses can also be delivered at a location of your choice...

S6

Unit Testing using JUnit Course Overview

This Unit Testing using 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.

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.

Exercises and examples are used throughout the course to give practical hands-on experience with the techniques covered.

The delegate will learn and acquire skills as follows:

  • Installing and Configuring JUnit
  • Designing Unit Tests
  • Writing Test Classes
  • Integrating with Apache Maven
  • Stubbing and Mocking
  • Testing Data Access Objects (DAOs)
  • Testing XML/HTML Web Responses

Who will the Course Benefit?

This Unit Testing using 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.

Course Objectives

This course aims to provide the delegate with the knowledge to be able to describe the concepts of unit testing, design, write and execute test cases using JUnit, integrate JUnit with Apache Maven, stub and mock collaborators, and test DAOs and web responses.

Requirements

Delegates should have attended the pre-requisite Java Programming 2 course or have equivalent experience with the Java programming language.

Pre-Requisite Courses

Notes:
  • Course technical content is subject to change without notice.
  • Course content is structured as sessions, this does not strictly map to course timings. Concepts, content and practicals often span sessions.


 

Course Contents

Unit Testing using JUnit Training Course

Course Introduction

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

Session 1: UNIT TESTING

  • 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

Session 2: INTRODUCTION TO JUNIT

  • Main Features of JUnit
  • JUnit Syntax
  • Integrating JUnit with Eclipse

Session 3: WRITING TEST CASES

  • Test Project Structure
  • Test Case Structure
  • Junit Annotations
  • JUnit Assertions
  • Parameterised Junit Tests

Session 4: INTEGRATING WITH ANT AND MAVEN

  • JUnit Integration with Apache Ant
  • JUnit Integration with Apache Maven

Unit Testing using JUnit Training Course

Session 5: TESTING STRATEGIES

  • Test Stubs
  • Command line arguments
  • Stubbing a Database Connection with JUnit
  • Stubbing a HTTP Connection with JUnit

Session 6: MOCKING

  • State vs Interaction Tests
  • Test Mocks
  • The Phases of Mocking
  • Mocking using JUnit and Mockito

Session 7: TESTING DATA ACCESS OBJECTS

  • Strategies for Testing Data Access Objects
  • Testing Entity Mappings using an In-Memory Database with JUnit and Hibernate

Session 8: TESTING WEB RESPONSES

  • Validating XML against a Schema
  • Testing HTML Responses using HTMLUnit
  • Testing XML Responses using XMLUnit
 

Unit Testing using JUnit

Duration: 2 days

RRP: £950.00 exc. VAT 


Upcoming Scheduled Events
Next 12 months

Virtual StayAhead Virtual Courses available  & London Schedule
We are running a full Virtual schedule
Start Date   Spaces Book
27 Jul 2020
StayAhead Virtual Courses available  StayAhead Classroom Courses available 
Spaces StayAhead - Course Running Book
10 Sep 2020
StayAhead Virtual Courses available  StayAhead Classroom Courses available 
Spaces StayAhead - Course Running Book
05 Nov 2020
StayAhead Virtual Courses available  StayAhead Classroom Courses available 
Spaces StayAhead - Course Running Book

Virtual Events StayAhead Virtual Courses available Attend your training using our Live Virtual Classroom solution.

Classroom Events StayAhead Classroom Courses available You can attend in our traditional classroom setting using one of our Training Centres.
In the current climate, attendance at a Training Centre will be reviewed at the time of the request.

Closed Courses Closed Classroom Courses available These Closed Company events can be offered in your own setting or using our Live Virtual Classroom solution.
Delegates can attend from your business location, their home or a location of their choice. A great way to provide training to a group of delegates in a Team environment, even when they are in diverse locations, nationally or even internationally.
 
 
        Home             Let Us Call You
 

 

Course Deliveries

Public Scheduled and Closed
Virtual
UK and Overseas

OUG

Oracle User Group - Membership Benefits

OUG

Certification

Our independent Oracle, Solaris & Red Hat Linux curriculums helps prepare delegates for official certification.

StayAhead
Flexibility

Cannot see a sutiable date?
Please call us and we will try an accommodateyour needs!

StayAhead Live Virtual Classroom

 
Join live instructor-led classroom training from the comfort of your home or office.
All the convenience and benefits of the classroom experience without the hassle and costs associated to travel and accommodation.
 
 



Our Course Curriculum

 
 
 
 
 

AWS, Azure, VMWare, Cisco & Cyber Security

 
 



Our Ratings

Instructor
Quality
 

97.32%

Course
Practical
 

92.5%

Overall
Courseware
 

94.31%

Overall
Course
 

96.29%

+44 (0)20 7600 6116
Enquiries@StayAhead.com
Copyright © 2020 StayAhead Training Ltd
Cookies   /   Privacy Policy