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
This task adds the public builder method, switches the constructor to create `HttpsServer` when HTTPS is configured, and proves it end-to-end with a real HTTPS round-trip.
497
497
498
-
-[]**Step 1: Add an OpenAPI fixture for the HTTPS IT**
498
+
-[x]**Step 1: Add an OpenAPI fixture for the HTTPS IT**
499
499
500
500
Reuse the existing `src/test/resources/openapi.json` (or whichever spec the existing `OpenApiServerIT` uses). Confirm the spec path used by the existing IT:
@@ -598,15 +598,15 @@ class OpenApiServerHttpsIT {
598
598
599
599
NOTE: This IT assumes the test spec at `/openapi.json` declares an operationId `getThings` on `GET /things` with no required parameters, no required body, and no security. If the existing test spec uses different operationIds, adjust the `handler` map and the URI path to match an operation that returns a `Response.ok(...)` cleanly. Confirm by skimming `src/test/resources/openapi.json` before running.
-[]**Step 5: Update the constructor to optionally build an `HttpsServer`**
703
+
-[x]**Step 5: Update the constructor to optionally build an `HttpsServer`**
704
704
705
705
In `OpenApiServer.java`, change the constructor signature from:
706
706
@@ -747,23 +747,23 @@ with:
747
747
}
748
748
```
749
749
750
-
- [] **Step6:Run unit tests, confirm nothing regressed**
750
+
- [x] **Step6:Run unit tests, confirm nothing regressed**
751
751
752
752
```bash
753
753
mvn test
754
754
```
755
755
756
756
Expected: every existing test still passes. The `Builder` change from `int port =DEFAULT_PORT` to `Integer port` plus default-resolution in `build()` is observationally identical to the old behaviour forHTTP callers.
0 commit comments