File tree Expand file tree Collapse file tree 1 file changed +4
-15
lines changed
src/test/java/uk/gov/hmcts/cp/subscription/client Expand file tree Collapse file tree 1 file changed +4
-15
lines changed Original file line number Diff line number Diff line change 1313import org .springframework .test .context .DynamicPropertyRegistry ;
1414import org .springframework .test .context .DynamicPropertySource ;
1515import uk .gov .hmcts .cp .openapi .model .PcrEventPayload ;
16+ import uk .gov .hmcts .cp .subscription .integration .IntegrationTestBase ;
1617
1718import java .util .UUID ;
1819
2526import static com .github .tomakehurst .wiremock .client .WireMock .equalTo ;
2627import static com .github .tomakehurst .wiremock .core .WireMockConfiguration .wireMockConfig ;
2728
28- @ SpringBootTest (
29- classes = DocumentServiceClientIntegrationTest .TestConfig .class ,
30- webEnvironment = SpringBootTest .WebEnvironment .NONE
31- )
32- class DocumentServiceClientIntegrationTest {
33-
34- @ Configuration
35- @ EnableFeignClients (clients = DocumentServiceClient .class )
36- @ Import ({
37- FeignAutoConfiguration .class ,
38- HttpMessageConvertersAutoConfiguration .class
39- })
40- static class TestConfig {
41- }
29+ @ SpringBootTest (webEnvironment = SpringBootTest .WebEnvironment .MOCK )
30+ class DocumentServiceClientIntegrationTest extends IntegrationTestBase {
4231
4332 @ RegisterExtension
4433 static WireMockExtension wireMockServer = WireMockExtension .newInstance ()
@@ -56,7 +45,7 @@ static void configureProperties(DynamicPropertyRegistry registry) {
5645 }
5746
5847 @ Test
59- void generateOpenApiModels_should_create_ErrorResponse () {
48+ void should_send_request_when_document_service_returns_no_content () {
6049 wireMockServer .stubFor (post (urlEqualTo ("/client-webhook-url" ))
6150 .willReturn (aResponse ()
6251 .withStatus (204 )));
You can’t perform that action at this time.
0 commit comments