JFixture-Scala

JFixture-Scala adds support for scala types and collections to JFixture

License

License

Categories

Categories

Scala Languages
GroupId

GroupId

com.flextrade.jfixture
ArtifactId

ArtifactId

jfixture-scala
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

JFixture-Scala
JFixture-Scala adds support for scala types and collections to JFixture
Project URL

Project URL

https://github.com/FlexTradeUKLtd/jfixture-scala
Source Code Management

Source Code Management

http://github.com/FlexTradeUKLtd/jfixture-scala.git

Download jfixture-scala

How to add to project

<!-- https://jarcasting.com/artifacts/com.flextrade.jfixture/jfixture-scala/ -->
<dependency>
    <groupId>com.flextrade.jfixture</groupId>
    <artifactId>jfixture-scala</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.flextrade.jfixture/jfixture-scala/
implementation 'com.flextrade.jfixture:jfixture-scala:1.0.0'
// https://jarcasting.com/artifacts/com.flextrade.jfixture/jfixture-scala/
implementation ("com.flextrade.jfixture:jfixture-scala:1.0.0")
'com.flextrade.jfixture:jfixture-scala:jar:1.0.0'
<dependency org="com.flextrade.jfixture" name="jfixture-scala" rev="1.0.0">
  <artifact name="jfixture-scala" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.flextrade.jfixture', module='jfixture-scala', version='1.0.0')
)
libraryDependencies += "com.flextrade.jfixture" % "jfixture-scala" % "1.0.0"
[com.flextrade.jfixture/jfixture-scala "1.0.0"]

Dependencies

compile (2)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.11.7
org.scalatest : scalatest_2.11 jar 2.2.5

provided (1)

Group / Artifact Type Version
com.flextrade.jfixture : jfixture jar 2.7.2

Project Modules

There are no modules declared in this project.

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.

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]]
com.flextrade.jfixture

FlexTrade UK Ltd

Versions

Version
1.0.0
0.0.3
0.0.2
0.0.1