Skip to content

Commit

Permalink
#12 Fix conflict of Integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Thopap committed Sep 27, 2024
1 parent 6a9dd82 commit a9d3a12
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@
import org.openehealth.ipf.commons.ihe.xds.core.responses.Response;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
import org.springframework.test.annotation.DirtiesContext;

@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)
@DirtiesContext
class XdsToFhirApplicationIT {

@Produce("xds-iti18://localhost:{{local.server.port}}/services/registry/iti18")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import org.springframework.boot.test.system.CapturedOutput;
import org.springframework.boot.test.system.OutputCaptureExtension;
import org.springframework.boot.test.web.server.LocalServerPort;
import org.springframework.test.context.TestPropertySource;
import org.springframework.test.annotation.DirtiesContext;

import javax.xml.namespace.QName;
import javax.xml.transform.Source;
Expand All @@ -27,9 +27,11 @@
import static org.junit.jupiter.api.Assertions.assertNull;
import static org.springframework.test.util.AssertionErrors.assertEquals;

@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)
@TestPropertySource(properties = {"xds.xua.enabled=true"})
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT, properties = {
"xds.xua.enabled=true"
})
@ExtendWith(OutputCaptureExtension.class)
@DirtiesContext
class XdsToFhirApplicationWebServiceTestIT {
@LocalServerPort
private int port;
Expand Down

0 comments on commit a9d3a12

Please sign in to comment.