Teamtreehouse – Unit Testing in Java

Teamtreehouse – Unit Testing in Java


About this Course

Unit testing is a Java best practice that ensures your code is working how it was intended. It is a critical habit that you should develop early on in your coding adventures.

What you’ll learn

Defining a Unit
Composition vs. Inheritance
Test fixtures, test suites and the jUnit test runner

Why Test?

Testing is a critical development practice. It provides countless benefits that we will explore.

9 steps


Defining a Unit

How we define units

3 questions
Introducing the Project

Beginning the Project

3 questions
Code Reuse

Composition vs. Inheritance

4 questions
The Quick Prototype

Single Responsibility Principle

2 questions

How to Test

Let’s get our testing environment all set up and walk through how to write and then run our tests.

8 steps
What to Test

Determining what to test is part of the great art of testing. Let’s explore the boundaries and responsibilities of your tests.

10 steps


Width: 1280 pixels
Height: 720 pixels
Format: AVC
Codec: AVC
Duration: 00:05:10
Bit rate: 850 Kbps
Frame rate: 29.970 fps
Aspect ratio: 16:9
Bit depth: 8 bits
Color space: YUV
Subtitles: N/A


Audio track: 1
Language: N/A
Codec: AAC LC
Channels: 2
Bit rate: 84 Kbps
Compression: Lossy
Sampling rate: 48 Khz

Download from NitroFlare

Download from

Download from FileFox

Extract the archives with Winrar 5 or WinZip(zip files) & password
Password: Golden_Plaza