Home    |    Instructor-led Training    |    Online Training     
         
 
Courses
ADA
Adobe
Agile
AJAX
Android
Apache
AutoCAD
Big Data
BlockChain
Business Analysis
Business Intelligence
Business Objects
Business Skills
C/C++/Go programming
Cisco
Citrix
Cloud Computing
COBOL
Cognos
ColdFusion
COM/COM+
CompTIA
CORBA
CRM
Crystal Reports
Data Science
Datawarehousing
DB2
Desktop Application Software
DevOps
DNS
Embedded Systems
Google Web Toolkit (GWT)
IPhone
ITIL
Java
JBoss
LDAP
Leadership Development
Lotus
Machine learning/AI
Macintosh
Mainframe programming
Mobile
MultiMedia and design
.NET
NetApp
Networking
New Manager Development
Object oriented analysis and design
OpenVMS
Oracle
Oracle VM
Perl
PHP
PostgreSQL
PowerBuilder
Professional Soft Skills Workshops
Project Management
Rational
Ruby
Sales Performance
SAP
SAS
Security
SharePoint
SOA
Software quality and tools
SQL Server
Sybase
Symantec
Telecommunications
Teradata
Tivoli
Tomcat
Unix/Linux/Solaris/AIX/
HP-UX
Unisys Mainframe
Visual Basic
Visual Foxpro
VMware
Web Development
WebLogic
WebSphere
Websphere MQ (MQSeries)
Windows programming
XML
XML Web Services
Other
Introduction to Java Testing (Version 8.0)
Java Training Overview

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.

Java Training 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.
Java Training Prerequisites

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.

Java Training Course duration

2 days.

Java Training Course outline

Chapter 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
Chapter 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
Chapter 3. Test-Driven Development
  • Writing the Test First
  • The TDD Cycle
  • Advantages of TDD
  • Resistance to TDD
  • A Case Study
Chapter 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
Chapter 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
System Requirements

Hardware – minimal: Core i5, 1.8 GHz, 4 gig RAM, 500 meg disk space.
Hardware – recommended: Core i5, 2.8 GHz, 8 gig RAM, 500 meg disk space.
Operating system: Tested on Windows 7/8, Mac OS 10.8.5
Network and Security: Limited privileges required
Software: All free downloadable tools.


Please contact your training representative for more details on having this course delivered onsite or online

Training Outlines - the one stop shopping center for IT training.
© Training Outlines All rights reserved