In this section, we're going to be hands on and walk
through the creation of some production code and
use the JUnit API to test it.
As we do this, we're going to explain
JUnit features in a just in time way.
So in other words, explain the features as we go
along and need to use them in this way
they're explaining context.
Now, the code we're going to look at
is simple and this is by design.
We're not looking to write tons of
complex unit tests which test hugely complex
pieces of functionality in this section.
Now we just want to take easy to walk
steps where we can understand what's happening
with JUnit as we go along and focus
on JUnit itself, instead of devoting our brain cells
to understanding some tricky, complex contrived code.
By learning about JUnit in this way, by taking
those easy to walk steps, you'll get good mastery
of the core concepts which you can then apply
to those complex pieces of code you want into
testing your projects at a later date.
But we have to understand the basics first.
So let's jump in now and start
writing some unit tests with JUnit.