|
39 | 39 | import static org.mockito.Mockito.verify; |
40 | 40 |
|
41 | 41 | @ExtendWith(MockitoExtension.class) |
42 | | -public class EhrResendControllerTest { |
| 42 | +class EhrResendControllerTest { |
43 | 43 |
|
44 | | - public static final Instant NOW = Instant.parse("2024-01-01T10:00:00Z"); |
| 44 | + private static final Instant NOW = Instant.parse("2024-01-01T10:00:00Z"); |
45 | 45 | private static final Instant FIVE_DAYS_AGO = NOW.minus(Duration.ofDays(5)); |
46 | 46 | private static final String URI_TYPE = "https://fhir.nhs.uk/STU3/StructureDefinition/GPConnect-OperationOutcome-1"; |
47 | 47 | private static final String CONVERSATION_ID = "123-456"; |
48 | | - public static final String NHS_NUMBER = "12345"; |
| 48 | + private static final String NHS_NUMBER = "12345"; |
49 | 49 | private static final String TO_ASID_CODE = "test-to-asid"; |
50 | 50 | private static final String FROM_ASID_CODE = "test-from-asid"; |
51 | | - public static final String INCUMBENT_NACK_CODE = "99"; |
52 | | - public static final String INCUMBENT_NACK_DISPLAY = "Unexpected condition."; |
53 | | - public static final String INTERNAL_SERVER_ERROR = "INTERNAL_SERVER_ERROR"; |
54 | | - public static final String GPCONNECT_ERROR_OR_WARNING_CODE = "http://fhir.nhs.net/ValueSet/gpconnect-error-or-warning-code-1"; |
55 | | - public static final String INVALID_IDENTIFIER_VALUE = "INVALID_IDENTIFIER_VALUE"; |
| 51 | + private static final String INCUMBENT_NACK_CODE = "99"; |
| 52 | + private static final String INCUMBENT_NACK_DISPLAY = "Unexpected condition."; |
| 53 | + private static final String INTERNAL_SERVER_ERROR = "INTERNAL_SERVER_ERROR"; |
| 54 | + private static final String GPCONNECT_ERROR_OR_WARNING_CODE = "http://fhir.nhs.net/ValueSet/gpconnect-error-or-warning-code-1"; |
| 55 | + private static final String INVALID_IDENTIFIER_VALUE = "INVALID_IDENTIFIER_VALUE"; |
56 | 56 |
|
57 | 57 | private ObjectMapper objectMapper; |
58 | 58 |
|
@@ -255,7 +255,7 @@ private String generateRandomUppercaseUUID() { |
255 | 255 | return UUID.randomUUID().toString().toUpperCase(); |
256 | 256 | } |
257 | 257 |
|
258 | | - public static OperationOutcome createOperationOutcome( |
| 258 | + static OperationOutcome createOperationOutcome( |
259 | 259 | OperationOutcome.IssueType type, OperationOutcome.IssueSeverity severity, CodeableConcept details, String diagnostics) { |
260 | 260 | var operationOutcome = new OperationOutcome(); |
261 | 261 | Meta meta = new Meta(); |
|
0 commit comments