Skip to content

Customisations for JFixture to make it more useful when writing Scala

Notifications You must be signed in to change notification settings

FlexTradeUKLtd/jfixture-scala

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Available on Maven Central for:

  • Scala 2.11: maven central
  • Scala 2.12: maven central
  • Scala 2.13: maven central

SBT

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

Maven

<dependency>
	<groupId>com.flextrade.jfixture</groupId>
	<artifactId>jfixture-scala_2.13</artifactId>
	<version>1.2.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]]

About

Customisations for JFixture to make it more useful when writing Scala

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages