I'm currently writing a wrapper of the Spotify Metadata API to learn Scala. Everything's fine and dandy but I'd like to unit test the code. To properly do this I'll need to stub the Spotify API and get consistent return values (stuff like popularity of tracks changes very frequently).
Does anybody know how to stub web calls in Scala, the JVM in general or by using some external tool I could hook up into my Maven setup?
PS I'm basically looking for something like Ruby's FakeWeb...
Thanks in advance!