Close
Contact Us info@learnquest.com

??WelcomeName??
??WelcomeName??
« Important Announcement » Contact Us 877-206-0106 | USA Flag
Close
Close
Close
photo

Thank you for your interest in LearnQuest.

Your request is being processed and LearnQuest or a LearnQuest-Authorized Training Provider will be in touch with you shortly.

photo

Thank you for your interest in Private Training.

We look forward to helping you develop the perfect training solution to help you meet your company's goals.

For immediate assistance, speak with one of our representatives using the chat module below. Otherwise, LearnQuest or a LearnQuest-Authorized Training Provider will be in touch with you shortly.

Close
photo

Thank you for your interest in LearnQuest!

Now, you will be able to stay up-to-date on our latest course offerings, promotions, and training discounts. Watch your inbox for upcoming special offers.

title

Date: xxx

Location: xxx

Time: xxx

Price: xxx

Please take a moment to fill out this form. We will get back to you as soon as possible.

All fields marked with an asterisk (*) are mandatory.

Unit Testing Essentials using JUnit 5 and EasyMock (with Best Practices)

Price
Contact LearnQuest
3 Days
TT3524
Classroom Training, Online Training
Trivera Training and Certification - 0

AWS Training Pass

Take advantage of flexible training options with the AWS Training Pass and get Authorized AWS Training for a full year.

Learn More

Prices reflect a 22.5% discount for IBM employees (wherever applicable).
Prices reflect a 24% discount for Kyndryl employees (wherever applicable).
Prices reflect the Accenture employee discount.
Prices shown are the special AWS Partner Prices.
Prices reflect the Capgemini employee discount.
Prices reflect the UPS employee discount.
Prices reflect the ??democompanyname?? employee discount.
GSA Private/Onsite Price: ??gsa-private-price??
For GSA pricing, please go to GSA Advantage.
 

Class Schedule

Delivery Formats

Sort results

Filter Classes

Guaranteed to Run

Modality

Location

Language

Date

    Sorry, there are no public classes currently scheduled in your country.

    Please complete this form, and a Training Advisor will be in touch with you shortly to address your training needs.

View Global Schedule

Course Description

Overview

JUnit 5 and EasyMock make it possible to write higher-quality Java code. These powerful tools are designed to support robust, predictable and automated testing development in the Java enterprise application arena.

Unit Testing Essentials using JUnit 5 and EasyMock is a three-day, hands-on unit testing course geared for experienced developers who need to get up and running with essential unit testing skills using JUnit, EasyMock, and other tools. Students will leave the course armed with the skills required to leverage solid unit testing practices using the latest industry techniques and best practices. This course quickly introduces developers to the features of JUnit and educates them regarding JUnit’s strengths and weaknesses.
 

Objectives

This skills-centric course is about 50% hands-on lab and 50% lecture, designed to train attendees in core unit testing skills, coupling the most current, effective techniques with the soundest industry practices. Working in a hands-on learning environment attendees will learn to:
  • Understand what unit testing is and what it is not intended to cover
  • Understand JUnit 5.
  • Understand and 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.
  • Understand JUnit’s strengths and weaknesses
  • Understand the role of debugging when done in conjunction with tests.
  • Understand not only the fundamentals of the TDD using Java, but also its importance, uses, strengths and weaknesses.
  • Understand how JUnit affects your perspective on development and increases your focus on a task.
  • Learn good JUnit coding style.
  • Create well-structured JUnit programs.
  • Understand 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.
  • Discuss various testing techniques.
The following JUnit-based testing frameworks are examined:
  • JUnit 5, Mockito and PowerMock

Audience

This programming course is for experienced Java developers.
 

Prerequisites


     

Topics

Course Agenda Session: Introduction Lesson: Introduction
  • Introduce Test Driven Development
Session: Unit Testing using JUnit Lesson: Unit Testing Fundamentals
  • Purpose of Unit Testing
  • Good Unit Tests
  • Test Stages
  • Unit Testing Vs Integration Testing
  • Understanding Unit Testing Frameworks
Lesson: Jumpstart: JUnit 5.x
  • Understand and work with the features of JUnit
  • Write unit tests using @Test annotation
  • Use @DisplayName to specify a custom name for the test
  • Manage fixtures using @BeforeEach, @AfterEach, @BeforeAll and @AfterAll annotations
  • Launch tests using @ExtendWith (@RunWith – JUnit 4+) annotation
  • Build test suites using @SelectPackages or @SelectClasses
  • Use @Disabled to prevent a test class or method from running
  • Lab: Demo JUnit
  • Lab: Build JUnit Case Study
  • Lab: Jumpstart JUnit
  • Lab: Reapplying JUnit
Lesson: Annotations
  • Describe the test execution cycle
  • Check for exceptions thrown by test
  • Use timeouts to fail test that take longer than required
  • Lab: Working with @Test Annotation
Lesson: 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
  • Lab: Working with Hamcrest
Lesson: Parameterized Tests
  • The @ParameterizedTest annotation
  • A parameterized test to test code under several conditions
  • Generic tests to support parameterized testing
  • Lab: Working with Parameterized Tests
Lesson: Advanced Features
  • Nested Unit Tests
  • Repeated Tests
  • JUnit Extensions
  • Conditions
  • Lambda Support
  • Grouped Assertions
  • Lab: Working with Advanced Features
Lesson: JUnit Best Practices
  • 'Good' Tests
  • Bad Smell
  • White-Box Unit Testing
  • Black-Box Unit Testing
  • Automation and Coverage
Session: Advanced Topics Lesson: Mocking of Components
  • Why We use Test Dummies
  • Mock Objects
  • Working with Mock Objects
  • Using Mocks with the User Interface
  • Mock Object Strategies
Lesson: Mock Objects and EasyMock
  • EasyMock Description and Features
  • EasyMock Object Lifecycle
  • Create/Expect Phase
  • Replay/Verify Phase
  • Mocking Complex Objects
  • EasyMock HOWTO
  • Lab: Mock Objects and EasyMock
  • Lab: Working With EasyMock
Lesson: PowerMock
  • PowerMock Description and Features
  • PowerMock Object Lifecycle
  • Mocking a Static Method
Lesson: Improving Code Quality Through Refactoring
  • Refactoring Overview
  • Refactoring and Testing
  • Refactoring to Design Patterns
  • Naming conventions
  • Lab: Refactoring
  • Lab: Best Practices - Refactoring Tests
Session: Appendix Lesson: Adding Testing to the Build Process
  • JUnit and Ant
  • The Ant JUnit Tag
  • Running JUnit Tests From Ant
  • Generating a JUnitReport
2023 Top 20 Training Industry Company - IT Training

Need Help?

Call us at 877-206-0106 or e-mail us at info@learnquest.com

Personalized Solutions

Need a personalized solution for your Training? Contact us, and one of our training advisors will help you find the best solution.

Contact Us

Need Help?

Do you have a question about the courses, instruction, or materials covered? Do you need help finding which course is best for you? We are here to help!

Talk to us

Cybersecurity Awareness Month 2024

Get Ahead of Online Threats with 20% Off Security Training.

Use SECURITY20 at checkout. Valid through October 31, 2024.

Browse Training Courses

IBM TechXchange Conference 2024

October 21-24 | Mandalay Bay, Las Vegas

Join us for four action-packed days to immerse yourself in innovation and learning. Gain practical skills in Generative AI, harness IBM technology, and engage with tech industry experts.

Self-Paced Training Info

Learn at your own pace with anytime, anywhere training

  • Same in-demand topics as instructor-led public and private classes.
  • Standalone learning or supplemental reinforcement.
  • e-Learning content varies by course and technology.
  • View the Self-Paced version of this outline and what is included in the SPVC course.
  • Learn more about e-Learning

Course Added To Shopping Cart

bla

bla

bla

bla

bla

bla

Self-Paced Training Terms & Conditions

??spvc-wbt-warning??

Exam Terms & Conditions

??exam-warning??
??group-training-form-area??
??how-can-we-help-you-area??
??personalized-form-area??
??request-quote-area??

Sorry, there are no classes that meet your criteria.

Please contact us to schedule a class.
Close

self-paced
STOP! Before You Leave

Save 0% on this course!

Take advantage of our online-only offer & save 0% on any course !

Promo Code skip0 will be applied to your registration

Close
Nothing yet
here's the message from the cart

To view the cart, you can click "View Cart" on the right side of the heading on each page
Add to cart clicker.

Purchase Information

??elearning-coursenumber?? ??coursename??
View Cart

title

Date: xxx

Location: xxx

Time: xxx

Price: xxx

Please take a moment to fill out this form. We will get back to you as soon as possible.

All fields marked with an asterisk (*) are mandatory.

If you would like to request a quote for 5 or more students, please contact CustomerService@learnquest.com to be assigned an account representative.

Need more Information?

Speak with our training specialists to continue your learning journey.

 

Delivery Formats

Close

By submitting this form, I agree to LearnQuest's Terms and Conditions

heres the new schedule
This website uses third-party profiling cookies to provide services in line with the preferences you reveal while browsing the Website. By continuing to browse this Website, you consent to the use of these cookies. If you wish to object such processing, please read the instructions described in our Privacy Policy.
Your use of this LearnQuest site affirms your consent to our use of session and persistent cookies to track how you use our website.