Overview of Junit Training

Our JUnit training course provides an introduction to Java's most-popular automated unit testing framework.

    At Candid you will learn about unit testing, the JUnit framework and how to set it up and use it with your Java projects. You will also get familiar with test-driven development as a methodology for writing highly reliable Java code.

Duration: 10 hours

    should have knowledge in java programming language.

Introducing JUnit

  • JUnit 101
  • JUnit 3 vs. JUnit 4 vs. TestNG
  • Getting started
  • Using JUnit within Eclipse
  • Test methods: testMethod or @Test method
    Using annotation
  • Setting up test data
  • Assertions in TestCase
  • Testing for exceptions
  • Testing Threads
  • Testing dependencies
  • Testing isolations
  • Creating and organizing test fixtures with setUp/tearDown and @Before/@After
  • Composing Test Cases into Test Suites
  • Combining Test Suites
  • Organizing Tests and Test Suites
  • Executing Tests
  • Showing Test Results
  • Integration with Ant
  • Reporting (XML and HTML)
  • Test Coverage report
  • Designing junit framwork

Why JUnit?

  • Testing with JUnit ?? Advantages
  • Testing with JUnit ?? Disadvantages

JUnit Extensions Overview

  • dbUnit, sqlUnit, httpUnit, htmlUnit, EasyMock, xmlUnit, etc.

Advanced Junit

  • Stubs
  • Mocks using EasyMock

Test-Driven Development

  • Best Practices with JUnit and TDD
  • Improve the quality and effectiveness of their software
  • Integration and functional testing with JUnit

Related Post

Inquiry Form
Email id
Your message

Find Us on Facebook