stubby-root


License

License

Categories

Categories

IDE Development Tools
GroupId

GroupId

com.dividezero
ArtifactId

ArtifactId

stubby-root_2.10
Last Version

Last Version

1.2
Release Date

Release Date

Type

Type

jar
Description

Description

stubby-root
stubby-root
Project URL

Project URL

https://github.com/headexplodes/http-stub-server-scala
Project Organization

Project Organization

com.dividezero
Source Code Management

Source Code Management

https://github.com/headexplodes/http-stub-server-scala

Download stubby-root_2.10

How to add to project

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

Dependencies

compile (1)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.10.2

Project Modules

There are no modules declared in this project.

Generic HTTP Stub Server (Scala)

Build Status

Note: This project is largely unmaintained. I'm happy to accept bug fixes but no new features are being added. I recommend you check out WireMock, a very similar tool and actively maintained (well, at the the time of writing at least).

The Generic HTTP Stub Server (a.k.a. 'Stubby') is a protocol and server implementation for stubbing HTTP interactions, mainly aimed at automated acceptance testing. There's also some example client code in various languages.

This an implementation of the original Java version in Scala with Unfiltered.

It currently passes the full functional test suite included as part of the original Java implementation.

Some documentation to get started:

Running

  • Install SBT
  • Start the standalone server:
$ sbt "project standalone" "run 8080"

Release Notes

Version 1.0 (2013-10-13)

Initial release.

All tests in original test suite (from the Java version) are now passing.

Known Issues

Rhino and Java 7

There seems to be problems with Java 7 and the Rhino JavaScript engine not being found in some circumstances, possibly in combination with a recent change to sbt.

A work-around is adding the following file to your project:

META-INF/services/javax.script.ScriptEngineFactory

with the single line contents:

com.sun.script.javascript.RhinoScriptEngineFactory

Hopefully this will be resolved more elegantly in the future.

Versions

Version
1.2
1.1