Unit Testing: An Introduction to the JUnit Framework

Junit 5.7    |    Beginner
  • 10 videos | 1h 9m 41s
  • Includes Assessment
  • Earns a Badge
Rating 4.6 of 171 users Rating 4.6 of 171 users (171)
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

  • 2m 2s
  • 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 on some of our courses, which can be shared on any social network or business platform.

Digital badges are yours to keep, forever.

YOU MIGHT ALSO LIKE

Rating 4.4 of 45 users Rating 4.4 of 45 users (45)
Rating 4.4 of 61 users Rating 4.4 of 61 users (61)

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 4.6 of 38 users Rating 4.6 of 38 users (38)
Rating 4.8 of 42 users Rating 4.8 of 42 users (42)
Rating 4.6 of 363 users Rating 4.6 of 363 users (363)