JFixture Scala
JFixture Scala contains a customisation to JFixture that adds support for many of Scala's built in types
Currently, Scala Lists, Sets, Maps and primitives (Int, Byte etc) are supported.
Case classes already work with the base version of JFixture.
SBT
libraryDependencies += "com.flextrade.jfixture" %% "jfixture-scala" % "1.1.0"
Maven
<dependency>
<groupId>com.flextrade.jfixture</groupId>
<artifactId>jfixture-scala_2.11</artifactId>
<version>1.1.0</version>
</dependency>
Example
Include the JFixtureSugar
trait in your test class/test fixture. Then, fixtured values can be created as follows -
val integer = fixture[Int]
val listOfStrings = fixture[List[String]]