Unit Testing In Java With JUnit
Pluralsight
Course Summary
In this course we'll cover the basic and advanced features of JUnit, learn to integration JUnit into build systems and how to go beyond the basic usages of the framework.
-
+
Course Description
Do you want to get started with unit testing in Java? Perhaps you already know a little about JUnit, but you've always wanted to learn more about this useful framework? Either way, this course will teach you what you need to know to not only get started with JUnit, but to master all of the features of the JUnit framework. In this course, we'll start out by learning the basics of JUnit and how to create some basic unit tests. Then, we'll go into some of the lesser known advanced features of JUnit that will really help you write elegant tests with less code. After that, I'll show you how to integrate JUnit with your existing Ant or Maven build system and how you can automate the creation of JUnit reports. Finally, we'll wrap things up by going beyond the basic uses of JUnit by learning how to use stubs and mocks to really isolate classes and we'll also learn how to use JUnit for more than just unit testing. By the end of this course, you'll be a JUnit pro and will have a handful of useful tools and techniques you can use to make the most of the JUnit framework. If you are interested in JUnit, you won't want to miss this course.
-
+
Course Syllabus
JUnit Overview- 19m 50s
—Introduction 1m 10s
—Who This Course is For 0m 58s
—Course Overview 1m 6s
—What is JUnit? 2m 2s
—JUnit Features 2m 17s
—How JUnit Works 1m 14s
—What is Unit Testing? 2m 30s
—History Of JUnit 0m 55s
—Kent Beck 0m 48s
—Early Timeline 0m 55s
—Getting JUnit 0m 57s
—Getting Eclipse 1m 15s
—Project Overview 1m 14s
—Hello JUnit 2m 7s
—Up Next 0m 22sJUnit Basics- 30m 4s
—Introduction 0m 42s
—JUnit Test Methods 1m 12s
—Basic Annotations 1m 37s
—Creating A Simple Test 5m 32s
—Creating Another Test 2m 1s
—Before And After 1m 9s
—Using Before 3m 8s
—Using After 1m 11s
—BeforeClass And AfterClass 0m 56s
—Using BeforeClass And AferClass 1m 23s
—Using Ignore 1m 42s
—Exception Testing 0m 52s
—Using Expected Exceptions 3m 1s
—Timing Out 0m 46s
—Using Timeout 2m 28s
—Assertions 1m 52s
—Up Next 0m 32sAdvanced JUnit- 37m 21sIntegrating JUnit- 35m 22sBeyond JUnit- 35m 12s