June 2018
Beginner
722 pages
18h 47m
English
Now, let's go back to the SimpleMathTest class, and run it by clicking on one of the green arrows. The green arrow on the class level runs all of the test methods, while the green arrow on the method level runs only that test method. Since we have only one test method, so far, it does not matter which arrow we click. The result should look like this:

That is exactly what we hoped to see: the test expected to a result equal to 4, but got 5, instead. It provides us with a level of confidence that our test works correctly.
Notice in the left pane, we can see the display names that came from the @DisplayName annotations—that ...
Read now
Unlock full access