diff --git a/cap05/src/test/java/app/car/cap05/interfaces/incoming/PassengerAPITestIT.java b/cap05/src/test/java/app/car/cap05/interfaces/incoming/PassengerAPITestIT.java index eff226a..654be68 100644 --- a/cap05/src/test/java/app/car/cap05/interfaces/incoming/PassengerAPITestIT.java +++ b/cap05/src/test/java/app/car/cap05/interfaces/incoming/PassengerAPITestIT.java @@ -19,7 +19,7 @@ class PassengerAPITestIT { private int port; @BeforeEach - public void setup() { + void setup() { RestAssured.port = port; } diff --git a/cap05/src/test/java/app/car/cap05/interfaces/incoming/TravelRequestAPITestIT.java b/cap05/src/test/java/app/car/cap05/interfaces/incoming/TravelRequestAPITestIT.java index a783338..934d31e 100644 --- a/cap05/src/test/java/app/car/cap05/interfaces/incoming/TravelRequestAPITestIT.java +++ b/cap05/src/test/java/app/car/cap05/interfaces/incoming/TravelRequestAPITestIT.java @@ -36,7 +36,7 @@ class TravelRequestAPITestIT { private WireMockServer server; @BeforeEach - public void setup() { + void setup() { RestAssured.port = port; } @@ -87,7 +87,7 @@ void testFindNearbyTravelRequests() { ; } - public void setupServer() { + void setupServer() { server.stubFor(get(urlPathEqualTo("/maps/api/directions/json")) .withQueryParam("origin", equalTo("Avenida Paulista, 900")) diff --git a/cap06/src/test/java/app/car/cap06/interfaces/incoming/PassengerAPITestIT.java b/cap06/src/test/java/app/car/cap06/interfaces/incoming/PassengerAPITestIT.java index dac6384..01fbd3c 100644 --- a/cap06/src/test/java/app/car/cap06/interfaces/incoming/PassengerAPITestIT.java +++ b/cap06/src/test/java/app/car/cap06/interfaces/incoming/PassengerAPITestIT.java @@ -18,7 +18,7 @@ class PassengerAPITestIT { private int port; @BeforeEach - public void setup() { + void setup() { RestAssured.baseURI = "https://localhost:" + port; RestAssured.useRelaxedHTTPSValidation(); RestAssured.authentication = basic("admin", "password"); diff --git a/cap06/src/test/java/app/car/cap06/interfaces/incoming/TravelRequestAPITestIT.java b/cap06/src/test/java/app/car/cap06/interfaces/incoming/TravelRequestAPITestIT.java index 188a965..0b580e4 100644 --- a/cap06/src/test/java/app/car/cap06/interfaces/incoming/TravelRequestAPITestIT.java +++ b/cap06/src/test/java/app/car/cap06/interfaces/incoming/TravelRequestAPITestIT.java @@ -40,7 +40,7 @@ class TravelRequestAPITestIT { private WireMockServer server; @BeforeEach - public void setup() { + void setup() { RestAssured.baseURI = "https://localhost:" + port; RestAssured.authentication = basic("admin", "password"); RestAssured.useRelaxedHTTPSValidation(); @@ -95,7 +95,7 @@ void testFindNearbyTravelRequests() { } - public void setupServer() { + void setupServer() { server.stubFor(get(urlPathEqualTo("/maps/api/directions/json")) .withQueryParam("origin", equalTo("Avenida Paulista, 900")) diff --git a/cap07/src/test/java/app/car/cap07/interfaces/incoming/PassengerAPITestIT.java b/cap07/src/test/java/app/car/cap07/interfaces/incoming/PassengerAPITestIT.java index 4288155..020fd0d 100644 --- a/cap07/src/test/java/app/car/cap07/interfaces/incoming/PassengerAPITestIT.java +++ b/cap07/src/test/java/app/car/cap07/interfaces/incoming/PassengerAPITestIT.java @@ -19,7 +19,7 @@ class PassengerAPITestIT { private int port; @BeforeEach - public void setup() { + void setup() { RestAssured.baseURI = "https://localhost:" + port; RestAssured.useRelaxedHTTPSValidation(); RestAssured.authentication = basic("admin", "password"); diff --git a/cap07/src/test/java/app/car/cap07/interfaces/incoming/TravelRequestAPITestIT.java b/cap07/src/test/java/app/car/cap07/interfaces/incoming/TravelRequestAPITestIT.java index d8166f9..2d3b14f 100644 --- a/cap07/src/test/java/app/car/cap07/interfaces/incoming/TravelRequestAPITestIT.java +++ b/cap07/src/test/java/app/car/cap07/interfaces/incoming/TravelRequestAPITestIT.java @@ -40,7 +40,7 @@ class TravelRequestAPITestIT { private WireMockServer server; @BeforeEach - public void setup() { + void setup() { RestAssured.baseURI = "https://localhost:" + port; RestAssured.authentication = basic("admin", "password"); RestAssured.useRelaxedHTTPSValidation(); @@ -95,7 +95,7 @@ void testFindNearbyTravelRequests() { } - public void setupServer() { + void setupServer() { server.stubFor(get(urlPathEqualTo("/maps/api/directions/json")) .withQueryParam("origin", equalTo("Avenida Paulista, 900")) diff --git a/cap08/src/test/java/app/car/cap08/interfaces/incoming/PassengerAPITestIT.java b/cap08/src/test/java/app/car/cap08/interfaces/incoming/PassengerAPITestIT.java index 2c76e43..566530e 100644 --- a/cap08/src/test/java/app/car/cap08/interfaces/incoming/PassengerAPITestIT.java +++ b/cap08/src/test/java/app/car/cap08/interfaces/incoming/PassengerAPITestIT.java @@ -18,7 +18,7 @@ class PassengerAPITestIT { private int port; @BeforeEach - public void setup() { + void setup() { RestAssured.baseURI = "https://localhost:" + port; RestAssured.useRelaxedHTTPSValidation(); RestAssured.authentication = basic("admin", "password"); diff --git a/cap08/src/test/java/app/car/cap08/interfaces/incoming/TravelRequestAPITestIT.java b/cap08/src/test/java/app/car/cap08/interfaces/incoming/TravelRequestAPITestIT.java index 178f814..9cef0ba 100644 --- a/cap08/src/test/java/app/car/cap08/interfaces/incoming/TravelRequestAPITestIT.java +++ b/cap08/src/test/java/app/car/cap08/interfaces/incoming/TravelRequestAPITestIT.java @@ -37,7 +37,7 @@ class TravelRequestAPITestIT { private WireMockServer server; @BeforeEach - public void setup() { + void setup() { RestAssured.baseURI = "https://localhost:" + port; RestAssured.authentication = basic("admin", "password"); RestAssured.useRelaxedHTTPSValidation(); @@ -94,7 +94,7 @@ void testFindNearbyTravelRequests() { } - public void setupServer() { + void setupServer() { server.stubFor(get(urlPathEqualTo("/maps/api/directions/json")) .withQueryParam("origin", equalTo("Avenida Paulista, 900")) diff --git a/cap09/src/test/java/app/car/cap09/interfaces/incoming/PassengerAPITestIT.java b/cap09/src/test/java/app/car/cap09/interfaces/incoming/PassengerAPITestIT.java index e18646f..aa56773 100644 --- a/cap09/src/test/java/app/car/cap09/interfaces/incoming/PassengerAPITestIT.java +++ b/cap09/src/test/java/app/car/cap09/interfaces/incoming/PassengerAPITestIT.java @@ -18,7 +18,7 @@ class PassengerAPITestIT { private int port; @BeforeEach - public void setup() { + void setup() { RestAssured.baseURI = "https://localhost:" + port; RestAssured.useRelaxedHTTPSValidation(); RestAssured.authentication = basic("admin", "password"); diff --git a/cap09/src/test/java/app/car/cap09/interfaces/incoming/TravelRequestAPITestIT.java b/cap09/src/test/java/app/car/cap09/interfaces/incoming/TravelRequestAPITestIT.java index d3328c9..5af0e6b 100644 --- a/cap09/src/test/java/app/car/cap09/interfaces/incoming/TravelRequestAPITestIT.java +++ b/cap09/src/test/java/app/car/cap09/interfaces/incoming/TravelRequestAPITestIT.java @@ -94,7 +94,7 @@ void testFindNearbyTravelRequests() { } - public void setupServer() { + void setupServer() { server.stubFor(get(urlPathEqualTo("/maps/api/directions/json")) .withQueryParam("origin", equalTo("Avenida Paulista, 900"))