Java: Testing with JUnit

Author

Released

10/6/2016

Unit testing is a critical part of any software development process. JUnit is an open-source testing tool specialized for Java, and it should be part of every Java developer's toolbox. Join Peggy Fisher as she explores Java testing with JUnit. Learn how to integrate JUnit with popular tools and IDEs (Eclipse, NetBeans, IntelliJ, and Maven), and conduct a variety of tests, including exception handling and parameterized tests.

Topics include:

What is JUnit?

Comparing values with assertions

Using JUnit with different Java IDEs

Creating basic unit tests

Testing for exception handling

Creating parameterized tests

Skill Level Intermediate

1h 10m

Duration

151,089

Views

Show MoreShow Less

- [Peggy] Hi, I'm Peggy Fisher.And whether you are just getting startedwith Java programming, or if you've been programming before,I want to introduce a great tool than can be usedto help unit test your programs.It's called JUnit.This is a free open source framework that helpsautomate the process of testing.As most of you know, testing is a criticalcomponent of any phase of a programming project.JUnit is easy to use and provides featuresto perform a single unit test as well as groupinga series of unit tests togetherinto a single suite.

To help you get started, we will reviewthe download process, use assertions to testour code, review the syntax for several IDE's,and add features for exception handling test,perimeterized test, and basic unit tests.So let's learn about JUnit.