goxr3plus / java-stream-player

🌌Java Advanced Audio Controller Library (WAV, AU, AIFF, MP3, OGG VORBIS, FLAC, MONKEY's AUDIO and SPEEX audio formats )
GNU General Public License v3.0
147 stars 33 forks source link

Mockito + demo #22

Closed HelgeStenstrom closed 5 years ago

HelgeStenstrom commented 5 years ago

Mockito is a mocking library used to create faked instances of classes. The class doesn't need to exist yet; we can create a mock from an interface or a parent class.

Mockito can also create spies, which intercept existing methods and check if and how they are called. The demonstration unit test uses spies.

Mockito has JUnit as a dependency. To avaoid JUnit version number conflict, we back the Junit version from 5.5.1 to 5.1.1, which is what this verison of Mockito wants.

goxr3plus commented 5 years ago

I have been using Mockito yep its a great addition. I can not merge the pull requesta for some reason :'(

HelgeStenstrom commented 5 years ago

I could ;)

HelgeStenstrom commented 5 years ago

I updated my local master (vs the remote) and then rebased this branch against the master. Maybe that’s why I didn’t have any merge conflicts.