March 2018
Intermediate to advanced
324 pages
8h 30m
English
We should be able to save each move to the DB. Since we already have all the game logic implemented, this should be trivial to do. Nonetheless, this will be a very good example of mock usage.
We should start by defining the Java bean that will represent our data storage schema. There's nothing special about it, so we'll skip this part with only one note.
Do not spend too much time defining specifications for Java boilerplate code. Our implementation of the bean contains overwritten equals and hashCode. Both are generated automatically by IDEA and do not provide a real value, except to satisfy the ...
Read now
Unlock full access