flextradeukltd / jfixture-scala

Customisations for JFixture to make it more useful when writing Scala

Version Matrix

JFixture Scala

JFixture Scala contains a customisation to JFixture that adds support for many of Scala's built in types

Build Status

Currently, Scala Lists, Sets, Maps and primitives (Int, Byte etc) are supported.

Case classes already work with the base version of JFixture.


libraryDependencies += "com.flextrade.jfixture" %% "jfixture-scala" % "1.1.0"




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]]