Created
October 12, 2013 18:59
-
-
Save ambantis/6953600 to your computer and use it in GitHub Desktop.
Using ScalaTest, a unit test of a lazy val json to object validator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@DoNotDiscover | |
class DbUserTest extends FunSpec with Matchers with EitherValues with DbUserJson { | |
describe("A DbUser") { | |
describe("Should be instantiated from valid json") { | |
validUserJson.validate[DbUser].left.get.email should be("bart@simpsons.com") | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment