Stephcraft / Project-16x16

2D Platformer game made with processing
GNU General Public License v3.0
95 stars 75 forks source link

Unit tests added for Tile class #164

Open vlad-nitu opened 2 years ago

vlad-nitu commented 2 years ago

162

Added unit tests for Tile class

The class is now fully tested (should now achieve 100% branch coverage) In order to be able to easily unit test Tile class, I decided to mock the PImage dependency. For this, I had to add the mockito dependency in 'pom.xml' file (used the lates version of Mockito)