Mastering Unit Testing with JUnit with Best Practices (TT3520) Course Details:

This course is geared for developers who need to learn essential unit testing skills using JUnit, EasyMock, and other tools. You will learn the best practices for writing great programs in Java, using unit testing techniques. This comprehensive course also covers essential test-driven development (TDD) topics and skills.

    No classes are currenty scheduled for this course.

    Call (919) 283-1653 to get a class scheduled online or in your area!

1. JUnit

  • JUnit Overview
  • Jumpstart: JUnit 4.x
  • @Test Annotation
  • Hamcrest
  • Parameterized Tests
  • Theories
  • JUnit Best Practices

2. Testing Tools and Techniques

  • Improving Code Quality Through Refactoring
  • Mocking of Components
  • Mock Objects and EasyMock
  • PowerMock

3. Appendix: Adding Testing to the Build Process


*Please Note: Course Outline is subject to change without notice. Exact course outline will be provided at time of registration.
  • What unit testing is and what it is not intended to cover
  • JUnit
  • Use the JUnit Test Runner interface
  • Use JUnit to drive the implementation of Java code
  • Test applications using native IDE support
  • Best practices and patterns for unit testing
  • JUnit's strengths and weaknesses
  • The role of debugging when done in conjunction with tests
  • Fundamentals of the TDD using Java and its importance, uses, strengths and weaknesses
  • How JUnit affects your perspective on development and increases your focus on a task
  • Learn good JUnit coding style
  • Create well-structured JUnit programs
  • How JUnit testing can be used for either state-based or interaction-based testing
  • How to extend testing with mock objects using EasyMock
  • Look at refactoring techniques available to make code as reusable/robust as possible
  • Various testing techniques

As a programming class, this course provides multiple challenges labs for students to work through during the class. This workshop is about 50% hands-on lab and 50% lecture. Throughout the course students will be led through a series of progressively advanced topics, where each topic consists of lecture, group discussion, comprehensive hands-on lab exercises, and lab review. Multiple detailed lab exercises are laced throughout the course, designed to reinforce fundamental skills and concepts learned in the lessons. At the end of each lesson, developers will be tested with a set of review questions to ensure that he/she has fully understands that topic.

At least one of the following courses:

Experienced Java programmers who wish to get up and running on test-driven development immediately

Ready to Jumpstart Your IT Career?

CONTACT US NOW!