Unit Testing: An Introduction to the JUnit Framework

Junit 5.7    |    Beginner
  • 10 Videos | 1h 13m 41s
  • Includes Assessment
  • Earns a Badge
JUnit, an open-source unit testing framework, can be used by Java developers who employ a test-driven development methodology. The platform allows you to write and run tests on sections of code repeatedly. Use this course as a quick theoretical and hands-on introduction to the JUnit framework. Begin by looking at the process of software testing in general, then unit-testing with JUnit in particular. Next, move on to writing a simple Java app for which you will write JUnit test cases to ensure that its functions behave in line with expectations. Moving along, learn how to use annotations to mark out methods as test cases and set up work to be carried out before test case executions and tasks to be performed after they have run. When you're done, you'll be able to get started writing unit tests for your code using the JUnit framework.

WHAT YOU WILL LEARN

  • discover the key concepts covered in this course
    describe various aspects of software testing and test-driven development
    identify the significant features of the JUnit framework that simplify the writing of test cases
    create a Java project using an Apache Maven archetype that includes a separate test directory
    recognize what steps may be involved when testing an application without the JUnit framework
  • describe the libraries and annotations that can be used to define JUnit tests
    run JUnit tests for your application, both collectively and individually
    structure your test executions by implementing a common set up and clean up method
    define a common set up and tear down method for all tests in a JUnit class
    summarize the key concepts covered in this course

IN THIS COURSE

  • Playable
    1. 
    Course Overview
    2m 2s
    UP NEXT
  • Playable
    2. 
    Testing in Software Development
    9m 11s
  • Locked
    3. 
    Testing with JUnit
    5m 50s
  • Locked
    4. 
    Setting up a Java Project with Apache Maven
    10m 32s
  • Locked
    5. 
    Writing a Test without JUnit
    7m 33s
  • Locked
    6. 
    Testing with JUnit
    11m 12s
  • Locked
    7. 
    Executing JUnit Tests
    5m 58s
  • Locked
    8. 
    Using BeforeEach and AfterEach Annotations in JUnit
    7m 17s
  • Locked
    9. 
    Using BeforeAll and AfterAll Annotations in JUnit
    8m 28s
  • Locked
    10. 
    Course Summary
    1m 37s

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

Skillsoft is providing you the opportunity to earn a digital badge upon successful completion of this course, which can be shared on any social network or business platform

Digital badges are yours to keep, forever.

YOU MIGHT ALSO LIKE

Likes 12 Likes 12  
Likes 72 Likes 72