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
{"Verify the MockServer was called at least 1 times, and at most 1 times, for a given path, by using the defaults.", CreateVerification(WhenRequestPath("/path")), `
22
-
{
23
-
"httpRequest": {
24
-
"path": "/path"
25
-
},
26
-
"times": {
27
-
"atLeast": 1,
28
-
"atMost": 1
29
-
}
30
-
}`},
31
-
{"Verify the MockServer was called at least 0 times, and at most 1 times, for a given path, by using the default atMost.", CreateVerification(WhenRequestPath("/path"), ThenAtLeastCalls(0)), `
32
-
{
33
-
"httpRequest": {
34
-
"path": "/path"
35
-
},
36
-
"times": {
37
-
"atLeast": 0,
38
-
"atMost": 1
39
-
}
40
-
}`},
41
-
{"Verify the MockServer was called at least 5 times, and at most 10 times, for a given path.", CreateVerification(WhenRequestPath("/path"), ThenAtLeastCalls(5), ThenAtMostCalls(10)), `
42
-
{
43
-
"httpRequest": {
44
-
"path": "/path"
45
-
},
46
-
"times": {
47
-
"atLeast": 5,
48
-
"atMost": 10
49
-
}
50
-
}`},
21
+
{"Verify the MockServer was called at least 1 times, and at most 1 times, for a given path, by using the defaults.", CreateVerification(WhenRequestPath("/path")), `
22
+
{
23
+
"httpRequest": {
24
+
"path": "/path"
25
+
},
26
+
"times": {
27
+
"atLeast": 1,
28
+
"atMost": 1
29
+
}
30
+
}`},
31
+
{"Verify the MockServer was called at least 1 times, and at most 1 times, for a given path and given HTTP method, by using the defaults.", CreateVerification(WhenRequestPath("/path"), WhenRequestMethod("GET")), `
32
+
{
33
+
"httpRequest": {
34
+
"path": "/path",
35
+
"method": "GET"
36
+
},
37
+
"times": {
38
+
"atLeast": 1,
39
+
"atMost": 1
40
+
}
41
+
}`},
42
+
{"Verify the MockServer was called at least 0 times, and at most 1 times, for a given path, by using the default atMost.", CreateVerification(WhenRequestPath("/path"), ThenAtLeastCalls(0)), `
43
+
{
44
+
"httpRequest": {
45
+
"path": "/path"
46
+
},
47
+
"times": {
48
+
"atLeast": 0,
49
+
"atMost": 1
50
+
}
51
+
}`},
52
+
{"Verify the MockServer was called at least 5 times, and at most 10 times, for a given path.", CreateVerification(WhenRequestPath("/path"), ThenAtLeastCalls(5), ThenAtMostCalls(10)), `
{"Verify the MockServer was called with these specific calls in this specific order.", CreateVerificationSequence(VerifyPath("/some/path/one"), VerifyPath("/some/path/two"), VerifyPath("/some/path/three")), `
92
-
[
93
-
{
94
-
"path": "/some/path/one"
95
-
},
96
-
{
97
-
"path": "/some/path/two"
98
-
},
99
-
{
100
-
"path": "/some/path/three"
101
-
}
102
-
]`},
101
+
{"Verify the MockServer was called with these specific calls in this specific order.", []*Expectation{CreateVerification(WhenRequestPath("/some/path/one")), CreateVerification(WhenRequestPath("/some/path/two")), CreateVerification(WhenRequestPath("/some/path/three"), WhenRequestMethod("POST"))}, `
0 commit comments