hands-on lab

Session 3: Lab 3 - Write unit tests in Java

Beginner
1h 30m
35
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.
Lab description

We have provided you with all the code you need for the Security class’s login method.

You will write all the code needed for Unit testing. A sample starter code will be provided later.

You will then create a new Java application using Eclipse IDE and write a few tests (as many as you can).

You will then run the tests and record the result in the spreadsheet that you produced in Lab 1.

When you’re ready, select Start Lab to continue.

About the author
Avatar
QA
Training Provider
Students
50,616
Labs
185
Courses
2,413
Learning paths
47

A world-leading tech and digital skills organization, we help many of the world’s leading companies to build their tech and digital capabilities via our range of world-class training courses, reskilling bootcamps, work-based learning programs, and apprenticeships. We also create bespoke solutions, blending elements to meet specific client needs.

Lab steps
Starting the Java programming environment
Create a new java application
Create Unit tests
Write the code