About the course

In this lesson, you will learn about unit testing and hands-on practice JUnit framework in java. In general, you will be able to:
  • Know what unit test mean
  • Understand junit, install and configure it
  • Create junit cases with different annotations and run
  • Create test suite using runWith and suiteClasses annotation
  • Use different assertions to show pass and fail tests
Please check the curriculum for more information.

Audience and Requirements

  • QA, BA, programmers and anyone who is interested to know about unit test and Junit.
  • Needs basic testing and java programming knowledge.

Training Highlights

  • Mentorship will be available through training and after training
  • You will be working on different junit programs
  • You will practice on interview questions and session from day one


Module 1: Unit testing introduction

  • 1.1  What unit test mean and importance
  • 1.2  Unit test coverages: code
  • 1.3  Branch and Statement
  • 1.4  Unit testing in Java

Module 2: Junit installation and compilation

  • 2.1  Installing and configuring Junit with Eclipse
  • 2.2  Defining test case in Junit and running in Eclipse
  • 2.3  Junit perspective for reporting

Module 3: JUnit complete step

  • 3.1  Create a project in Eclipse
  • 3.2  Create a java class to be tested
  • 3.3  Create and run a JUnit test case
  • 3.4  Using @Ignore annotation
  • 3.5  Creating suite tests
  • 3.6  Creating parameterized tests
  • 3.7  Rules

Module 4: Junit Annotations

  • 4.1  After
  • 4.2  AfterClass
  • 4.3  Before
  • 4.4  BeforeClass
  • 4.5  Ignore
  • 4.6  Test

Module 5: Junit Assertions

  • 5.1  Assert
  • 5.2  AssertEquals
  • 5.3  AssertTrue and AssertFalse
  • 5.4  Fail
  • 5.5  AssertNull
  • 5.6  AssertSame and AssertNotSame
  • 5.7  AssertThat

Module 6: Junit Assume methods

  • 6.1  AssumeTrue
  • 6.2  AssumeThat
  • 6.3  AssumeNotNull
  • 6.4  AssumeNoException

Module 7: Junit naming conventions

  • 7.1  Suffix "-test" to test classes
  • 7.2  Using "should" inside method names
  • 7.3  Suffix "Test" while Junit is in Maven

Module 8: Junit Test Suite to execute multiple test classes

  • 8.1  @RunWith(Suite.class)
  • 8.2  @SuiteClasses annotation

Module 9: Junit Test Runner to run multiple test cases together

  • 9.1  Junit.runner.JunitCore
  • 9.2  Junit.runner.Result
  • 9.3  Junit.runner.notification.Failure and success

Module 10: Junit with Selenium Webdriver test cases

Request a detailed syllabus.

Get Answers (Answering their questions)

What kind of learning does ITlearn360.com provide?

ITlearn360.com offers instructor-led online live sessions and classroom-based corporate trainings and bootcamps for various courses and certifications to the learners.

Who are the instructors @ITlearn360.com?

@ITlearn360.com, we have an instructor community of industry professionals who are working in leading organizations and are veterans in their respective fields. These experts belong to various industries and are willing to share their talent with learners like you.

Are classes @ITlearn360.com conducted through online video streaming?

Yes, the classes @ITlearn360.com are conducted through online video streaming where there is two-way communication between users and instructors. The users can speak by using a microphone, chat by sending a message through a chat window and share their screens with an instructor. For better understanding, users also get recorded video of the class.

Sign for next demo class