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 component is a Java service that receives NEMS events when there is a change of GP for a patient in PDS (Personal Demographics Service). It processes each event to filter for relevant use cases and extracts important information from each, and forwards this information to another queue for further use.
3
+
This component is a Java service that receives NEMS events when there is a change of GP for a patient in PDS (Personal Demographics Service). It processes each event to filter for relevant use cases and extracts important information from each, and forwards this information to another queue for further use.
4
+
5
+
## Prerequisites
6
+
7
+
- Java 25 LTS
8
+
- Gradle 9.3
9
+
10
+
### Running the tests
11
+
12
+
#### All tests
13
+
To run all Unit and Integration tests and produce a coverage report, in your terminal, run `./tasks test_all`
14
+
15
+
#### Unit testing
16
+
These are easiest to run from your IDE, however, you can also run them from your terminal with: `./tasks test_unit`
17
+
18
+
#### Integration testing
19
+
The integration tests can be run from your terminal with: `./tasks test_integration` which will start and stop LocalStack for you.
20
+
21
+
If you want to run these from your IDE, you must first start LocalStack with: `./tasks start_localstack`
22
+
It is recommended that you stop LocalStack after running the tests with: `./tasks stop_localstack`
id 'io.spring.dependency-management' version '1.1.4'
2
+
id 'org.springframework.boot' version '4.0.3'
3
+
id 'io.spring.dependency-management' version '1.1.7'
4
4
id 'java'
5
5
id 'jacoco'
6
-
id 'com.github.spotbugs' version '6.0.6'
7
-
id 'org.sonarqube' version '4.4.1.3373'
6
+
id 'org.sonarqube' version '7.2.2.6593'
8
7
}
9
8
10
9
sonar {
@@ -17,74 +16,73 @@ sonar {
17
16
18
17
group ='uk.nhs.prm.deductions'
19
18
version ='0.0.1-SNAPSHOT'
20
-
sourceCompatibility ='21'
21
19
22
-
configurations {
23
-
compileOnly {
24
-
extendsFrom annotationProcessor
20
+
repositories {
21
+
mavenCentral()
22
+
}
23
+
24
+
java {
25
+
toolchain {
26
+
languageVersion =JavaLanguageVersion.of(25)
25
27
}
26
28
}
27
29
28
-
repositories {
29
-
mavenCentral()
30
+
sourceSets {
31
+
integration {
32
+
compileClasspath += sourceSets.main.output
33
+
runtimeClasspath += sourceSets.main.output
34
+
}
30
35
}
31
36
32
-
//Without this task two jars are built, the additional "-plain.jar" is not needed
33
-
// for more details refer to: https://docs.spring.io/spring-boot/docs/current/gradle-plugin/reference/htmlsingle/#packaging-executable.and-plain-archives
Copy file name to clipboardExpand all lines: services/nems-event-processor/src/integration/java/uk/nhs/prm/deductions/nemseventprocessor/metrics/MetricPublisherTest.java
Copy file name to clipboardExpand all lines: services/nems-event-processor/src/integration/java/uk/nhs/prm/deductions/nemseventprocessor/metrics/ScheduledTestConfig.java
0 commit comments