-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(CCLS-1974) proceedings and costs amendments for ebs-api
Includes: - CCLS-2044 amended proceedings endpoint for lead proceedings - CCLS-2045 client involvement type endpoint - CCLS-2046 level of service endpoint - CCLS-2043 matter types endpoint
- Loading branch information
1 parent
5247a36
commit 25d7a0d
Showing
29 changed files
with
1,282 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 0 additions & 46 deletions
46
data-service/src/integrationTest/java/uk/gov/laa/ccms/data/AbstractIntegrationTest.java
This file was deleted.
Oops, something went wrong.
24 changes: 24 additions & 0 deletions
24
data-service/src/integrationTest/java/uk/gov/laa/ccms/data/IntegrationTestInterface.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package uk.gov.laa.ccms.data; | ||
|
||
import org.springframework.boot.test.context.SpringBootTest; | ||
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment; | ||
import org.springframework.test.annotation.DirtiesContext; | ||
import org.springframework.test.context.DynamicPropertyRegistry; | ||
import org.springframework.test.context.DynamicPropertySource; | ||
import org.testcontainers.junit.jupiter.Testcontainers; | ||
|
||
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT) | ||
@Testcontainers | ||
@DirtiesContext | ||
public interface IntegrationTestInterface { | ||
|
||
OracleContainerSingleton oracleContainerSingleton = OracleContainerSingleton.getInstance(); | ||
|
||
@DynamicPropertySource | ||
static void properties(DynamicPropertyRegistry registry) { | ||
registry.add("spring.datasource.url", oracleContainerSingleton.getOracleContainer()::getJdbcUrl); | ||
registry.add("spring.datasource.username", oracleContainerSingleton.getOracleContainer()::getUsername); | ||
registry.add("spring.datasource.password", oracleContainerSingleton.getOracleContainer()::getPassword); | ||
} | ||
} | ||
|
26 changes: 26 additions & 0 deletions
26
data-service/src/integrationTest/java/uk/gov/laa/ccms/data/OracleContainerSingleton.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package uk.gov.laa.ccms.data; | ||
|
||
import org.testcontainers.containers.OracleContainer; | ||
|
||
public class OracleContainerSingleton { | ||
|
||
private static OracleContainerSingleton instance; | ||
private final OracleContainer oracleContainer; | ||
|
||
private OracleContainerSingleton() { | ||
oracleContainer = new OracleContainer("gvenzl/oracle-xe:21-slim-faststart"); | ||
oracleContainer.start(); | ||
} | ||
|
||
public static synchronized OracleContainerSingleton getInstance() { | ||
if (instance == null) { | ||
instance = new OracleContainerSingleton(); | ||
} | ||
return instance; | ||
} | ||
|
||
public OracleContainer getOracleContainer() { | ||
return oracleContainer; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.