formatting
This commit is contained in:
@@ -26,9 +26,9 @@ import com.github.tomakehurst.wiremock.junit5.WireMockTest;
|
||||
import jakarta.servlet.http.Cookie;
|
||||
|
||||
/**
|
||||
* Integration tests for {@code POST /api/search}, verifying the session-gated
|
||||
* contract and request validation against a mocked Homebox backend (via WireMock)
|
||||
* and a real Spring MVC dispatch chain (via {@link MockMvc}).
|
||||
* Integration tests for {@code POST /api/search}, verifying the session-gated contract and request
|
||||
* validation against a mocked Homebox backend (via WireMock) and a real Spring MVC dispatch chain
|
||||
* (via {@link MockMvc}).
|
||||
*/
|
||||
@SpringBootTest
|
||||
@AutoConfigureMockMvc
|
||||
@@ -45,12 +45,12 @@ class SearchControllerTest {
|
||||
private static final String SEARCH_REQUEST = SEARCH.getValue();
|
||||
|
||||
/**
|
||||
* Logs in against a stubbed Homebox instance, then performs a keyword search using
|
||||
* the resulting session cookie. Expects {@code 200 OK} with the mocked item mapped
|
||||
* into the paged response body.
|
||||
* Logs in against a stubbed Homebox instance, then performs a keyword search using the
|
||||
* resulting session cookie. Expects {@code 200 OK} with the mocked item mapped into the paged
|
||||
* response body.
|
||||
*
|
||||
* @param wm WireMock runtime info, injected by {@link WireMockTest}, used to point
|
||||
* the client at the stub server
|
||||
* @param wm WireMock runtime info, injected by {@link WireMockTest}, used to point the client
|
||||
* at the stub server
|
||||
*/
|
||||
@Test
|
||||
void shouldReturnListOfQueriedHomeboxItems(WireMockRuntimeInfo wm) throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user