MockServer

org.mock-server : mockserver

A simple server to support mocking responses from any server / service that uses HTTP. The expectations that configure how the MockServer will respond and to incoming requests can be setup using any language that can create JSON. In simple client is provided to make this easy in Java.

[Website] ·
N/A usages
· 3,494 stars

Add dependency in Maven / Gradle

<dependency>
    <groupId>org.mock-server</groupId>
    <artifactId>mockserver</artifactId>
    <version>5.11.2</version>
</dependency>

How to add dependency in a project

  1. Add dependency to a Maven project
  2. Add dependency to a Gradle project
  3. Add dependency to a SBT Scala project
  4. Add dependency to a Grape project

1. Add dependency to a Maven project

Maven: Add the org.mock-server:mockserver library to the dependencies element of your pom.xml file:

<dependencies>
<dependency>
  <groupId>org.mock-server</groupId>
  <artifactId>mockserver</artifactId>
  <version>5.11.2</version>
</dependency>
</dependencies>

To install org.mock-server:mockserver library use the following command:

mvn install

2. Add dependency to a Gradle project

Gradle Groovy DSL: Add the org.mock-server:mockserver library to the dependencies section of your build.gradle file:

dependencies {
implementation 'org.mock-server:mockserver:5.11.2'
}

Gradle Kotlin DSL: Add the org.mock-server:mockserver library to the dependencies section of your build.gradle.kts file:

dependencies {
implementation("org.mock-server:mockserver:5.11.2")
}

3. Add dependency to a SBT Scala project

Scala: Add the org.mock-server:mockserver library to your build.sbt file:

libraryDependencies += "org.mock-server" % "mockserver" % "5.11.2"

4. Add dependency to a Grape project

Grape: Add an annotation org.mock-server:mockserver library to your groovy script file:

@Grapes(
    @Grab('org.mock-server:mockserver:5.11.2')
)

Compile Dependencies (0)

Group / Artifact Usage

Provided Dependencies (0)

Group / Artifact Usage

Test Dependencies (0)

Group / Artifact Usage