Stub web calls in Scala
Posted
by Dennis Laumen
on Stack Overflow
See other posts from Stack Overflow
or by Dennis Laumen
Published on 2010-06-06T19:33:25Z
Indexed on
2010/06/07
18:22 UTC
Read the original article
Hit count: 297
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!
© Stack Overflow or respective owner