Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
edeandrea committed Jan 9, 2024
1 parent 97c2c54 commit 86bcb9c
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 53 deletions.
3 changes: 1 addition & 2 deletions src/test/java/org/wiremock/grpc/GrpcAcceptanceTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
import io.grpc.ManagedChannel;
import io.grpc.ManagedChannelBuilder;
import io.grpc.StatusRuntimeException;
import java.time.Duration;
import org.hamcrest.Matchers;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
Expand All @@ -43,8 +44,6 @@
import org.wiremock.grpc.client.GreetingsClient;
import org.wiremock.grpc.dsl.WireMockGrpcService;

import java.time.Duration;

public class GrpcAcceptanceTest {

WireMockGrpcService mockGreetingService;
Expand Down
86 changes: 35 additions & 51 deletions src/test/resources/wiremock/mappings/hello-world.json
Original file line number Diff line number Diff line change
@@ -1,53 +1,37 @@
{
"mappings": [
{
"id": "d469c289-22fb-4186-90ab-deb6ffb6db5c",
"name": "Hello",
"request": {
"urlPath": "/hello",
"method": "GET",
"headers": {
"Accept": {
"or": [
{
"equalTo": "*/*"
},
{
"equalTo": "text/plain"
}
]
}
}
"mappings": [{
"request": {
"headers": {"Accept": {"or": [
{"equalTo": "*/*"},
{"equalTo": "text/plain"}
]}},
"method": "GET",
"urlPath": "/hello"
},
"metadata": {"mocklab": {
"response-example-attachment": "Hello World",
"created": {
"at": "2024-01-09T15:32:35.424189986Z",
"by": "vqe9q",
"via": "ADMIN_API"
},
"response": {
"status": 200,
"body": "Hello World!",
"headers": {
"Content-Type": "text/plain"
}
},
"uuid": "d469c289-22fb-4186-90ab-deb6ffb6db5c",
"persistent": true,
"priority": 5,
"metadata": {
"mocklab": {
"created": {
"at": "2024-01-09T15:32:35.424189986Z",
"via": "ADMIN_API",
"by": "vqe9q"
},
"updated": {
"at": "2024-01-09T15:34:11.584464236Z",
"via": "ADMIN_API",
"by": "vqe9q"
},
"response-example-attachment": "Hello World"
}
},
"postServeActions": []
}
],
"meta": {
"total": 1
}
}
"updated": {
"at": "2024-01-09T15:34:11.584464236Z",
"by": "vqe9q",
"via": "ADMIN_API"
}
}},
"response": {
"headers": {"Content-Type": "text/plain"},
"body": "Hello World!",
"status": 200
},
"name": "Hello",
"postServeActions": [],
"id": "d469c289-22fb-4186-90ab-deb6ffb6db5c",
"persistent": true,
"priority": 5,
"uuid": "d469c289-22fb-4186-90ab-deb6ffb6db5c"
}],
"meta": {"total": 1}
}

0 comments on commit 86bcb9c

Please sign in to comment.