Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Eclipse Foundation
IT
APIs
eclipsefdn-api-common
Commits
e52ccf38
Commit
e52ccf38
authored
Nov 22, 2022
by
Zachary Sabourin
Committed by
Martin Lowe
Nov 23, 2022
Browse files
feat: Add response body validation to get calls in testing package
Resolves
#29
parent
573bf94e
Pipeline
#12854
passed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
testing/src/main/java/org/eclipsefoundation/testing/templates/RestAssuredTemplates.java
View file @
e52ccf38
...
...
@@ -50,7 +50,8 @@ public final class RestAssuredTemplates {
* GET TESTS
*/
public
static
void
testGet
(
EndpointTestCase
testCase
)
{
getValidatedResponse
(
testCase
,
HttpMethod
.
GET
).
statusCode
(
testCase
.
getStatusCode
());
processResponseBody
(
getValidatedResponse
(
testCase
,
HttpMethod
.
GET
).
statusCode
(
testCase
.
getStatusCode
()),
testCase
.
getBodyValidationParams
());
}
public
static
void
testGet_validateSchema
(
EndpointTestCase
testCase
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment