I am currently writing a Spotify Metadata API wrapper to learn Scala. Everything is fine and dandy, but I would like unit test code. To do this correctly, I need to drown out the Spotify API and get consistent return values (for example, the popularity of tracks changes very often).
Does anyone know how to drown out web calls in Scala, JVM in general or with some external tool that I could connect to my Maven setup?
PS I'm basically looking for something like Ruby FakeWeb ...
Thanks in advance!
source
share