You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/modules/mockserver.md
+17Lines changed: 17 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,21 @@
1
1
# Mockserver Module
2
2
3
+
Mock Server can be used to mock HTTP services by matching requests against user-defined expectations.
4
+
5
+
## Usage example
6
+
7
+
The following example shows how to start Mockserver.
8
+
9
+
<!--codeinclude-->
10
+
[Creating a MockServer container](../../modules/mockserver/src/test/java/org/testcontainers/containers/MockServerContainerTest.java) inside_block:creatingProxy
11
+
<!--/codeinclude-->
12
+
13
+
And how to set a simple expectation using the Java MockServerClient.
14
+
15
+
<!--codeinclude-->
16
+
[Setting a simple expectation](../../modules/mockserver/src/test/java/org/testcontainers/containers/MockServerContainerTest.java) inside_block:testSimpleExpectation
17
+
<!--/codeinclude-->
18
+
3
19
## Adding this module to your project dependencies
4
20
5
21
Add the following dependency to your `pom.xml`/`build.gradle` file:
0 commit comments