March 2018
Intermediate to advanced
324 pages
8h 30m
English
Now it's time to work on the specification of which player is about to play his turn.
We can split this requirement into three tests:
Until this moment, we haven't used any of the JUnit's asserts. To use them, we need to import the static methods from the org.junit.Assert class:
import static org.junit.Assert.*;
In their essence, methods inside the Assert class are very simple. Most of them start with assert. For example, assertEquals compares ...
Read now
Unlock full access