2015
Treehouse
Craig Dennis
2:02
English
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.
Why Test?
Introduction
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
Meet JUnit
Setting Up a Project for Tests
Running Tests and Reading Output
JUnit basics - 3 questions
Assertions
Single Assertions Make For Better Tests - 1 objective
Fixtures
Using Before to not repeat yourself - 1 objective
What to Test
The Happy Path and Beyond
Exceptions
Happy Path Exception - 1 objective
Know Your Bounds
Rules rule! - 1 objective
Ruler of rules - 1 objective
What Not To Test
To Test or Not To Test - 4 questions
@AfterClass
Test the running total - 1 objective
teamtreehouse.com/library/unit-testing-in-java
Download File Size:513.65 MB