Skip to content

Commit b2e861d

Browse files
committed
public modifiers removal from tests
1 parent 8bca5eb commit b2e861d

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

service/src/test/java/uk/nhs/adaptors/gp2gp/ehr/mapper/EncounterComponentsMapperTest.java

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
import static uk.nhs.adaptors.gp2gp.utils.IdUtil.buildIdType;
4949

5050
@MockitoSettings(strictness = Strictness.LENIENT)
51-
public class EncounterComponentsMapperTest {
51+
class EncounterComponentsMapperTest {
5252
private static final String TEST_ID = "394559384658936";
5353
private static final String PRACTITIONER_ID = "6D340A1B-BC15-4D4E-93CF-BBCB5B74DF73";
5454

@@ -248,7 +248,7 @@ void testObservationWithNOPATGetsTranslatedIntoNarrativeWithConfidentialityCode(
248248
}
249249

250250
@Test
251-
public void When_MappingEncounterComponents_Expect_ResourceMapped() {
251+
void When_MappingEncounterComponents_Expect_ResourceMapped() {
252252
String expectedXml = ResourceTestFileUtils.getFileContent(EXPECTED_COMPONENTS_MAPPED_WITH_ALL_MAPPERS_USED);
253253

254254
var bundle = initializeMessageContext(INPUT_BUNDLE_WITH_ALL_MAPPERS_USED);
@@ -263,7 +263,7 @@ public void When_MappingEncounterComponents_Expect_ResourceMapped() {
263263
}
264264

265265
@Test
266-
public void When_MappingEncounterComponents_Expect_IgnoredResourceNotMapped() {
266+
void When_MappingEncounterComponents_Expect_IgnoredResourceNotMapped() {
267267
String expectedXml = ResourceTestFileUtils.getFileContent(EXPECTED_COMPONENTS_MAPPED_WITH_ALL_MAPPERS_USED);
268268

269269
var bundle = initializeMessageContext(INPUT_BUNDLE_WITH_IGNORED_RESOURCE);
@@ -274,7 +274,7 @@ public void When_MappingEncounterComponents_Expect_IgnoredResourceNotMapped() {
274274
}
275275

276276
@Test
277-
public void When_EncounterComponentsIncludeListWithMetaSecurity_Expect_CompoundStatementWithNOPAT() {
277+
void When_EncounterComponentsIncludeListWithMetaSecurity_Expect_CompoundStatementWithNOPAT() {
278278
String expectedXml = ResourceTestFileUtils.getFileContent(EXPECTED_COMPONENTS_MAPPED_WITH_NOPAT);
279279

280280
var bundle = initializeMessageContext(INPUT_BUNDLE_WITH_META_SECURITY);
@@ -287,7 +287,7 @@ public void When_EncounterComponentsIncludeListWithMetaSecurity_Expect_CompoundS
287287

288288
@ParameterizedTest
289289
@MethodSource("emptyResult")
290-
public void When_MappingEncounterComponents_Expect_NoResourceMapped(String inputJsonPath) {
290+
void When_MappingEncounterComponents_Expect_NoResourceMapped(String inputJsonPath) {
291291
var bundle = initializeMessageContext(inputJsonPath);
292292
var encounter = extractEncounter(bundle);
293293

@@ -296,7 +296,7 @@ public void When_MappingEncounterComponents_Expect_NoResourceMapped(String input
296296
}
297297

298298
@Test
299-
public void When_MappingEncounterMissingComponents_Expect_ExceptionThrown() {
299+
void When_MappingEncounterMissingComponents_Expect_ExceptionThrown() {
300300
var bundle = initializeMessageContext(INPUT_BUNDLE_WITH_RESOURCES_NOT_IN_BUNDLE);
301301
var encounter = extractEncounter(bundle);
302302

@@ -306,7 +306,7 @@ public void When_MappingEncounterMissingComponents_Expect_ExceptionThrown() {
306306
}
307307

308308
@Test
309-
public void When_MappingEncounterUnsupportedResource_Expect_ExceptionThrown() {
309+
void When_MappingEncounterUnsupportedResource_Expect_ExceptionThrown() {
310310
var bundle = initializeMessageContext(INPUT_BUNDLE_WITH_UNSUPPORTED_RESOURCES);
311311
var encounter = extractEncounter(bundle);
312312

@@ -316,7 +316,7 @@ public void When_MappingEncounterUnsupportedResource_Expect_ExceptionThrown() {
316316
}
317317

318318
@Test
319-
public void When_MappingConsultation_WithNonTopicList_Expect_ExceptionThrown() {
319+
void When_MappingConsultation_WithNonTopicList_Expect_ExceptionThrown() {
320320
var bundle = initializeMessageContext(INPUT_BUNDLE_WITH_NON_TOPIC_CONSULTATION_LIST_ENTRY);
321321
var encounter = extractEncounter(bundle);
322322

@@ -328,7 +328,7 @@ public void When_MappingConsultation_WithNonTopicList_Expect_ExceptionThrown() {
328328
}
329329

330330
@Test
331-
public void When_MappingTopic_WithNonCategoryList_Expect_ExceptionThrown() {
331+
void When_MappingTopic_WithNonCategoryList_Expect_ExceptionThrown() {
332332
var bundle = initializeMessageContext(INPUT_BUNDLE_WITH_NON_CATEGORY_TOPIC_LIST_ENTRY);
333333
var encounter = extractEncounter(bundle);
334334

@@ -340,7 +340,7 @@ public void When_MappingTopic_WithNonCategoryList_Expect_ExceptionThrown() {
340340
}
341341

342342
@Test
343-
public void When_MappingTopic_With_RelatedProblem_Expect_MappedToCode() {
343+
void When_MappingTopic_With_RelatedProblem_Expect_MappedToCode() {
344344

345345
when(codeableConceptCdMapper.mapToCdForTopic(any(CodeableConcept.class), any(String.class)))
346346
.thenCallRealMethod();
@@ -356,7 +356,7 @@ public void When_MappingTopic_With_RelatedProblem_Expect_MappedToCode() {
356356
}
357357

358358
@Test
359-
public void When_MappingTopic_With_RelatedProblemAndNoTitle_Expect_MappedToCode() {
359+
void When_MappingTopic_With_RelatedProblemAndNoTitle_Expect_MappedToCode() {
360360
when(codeableConceptCdMapper.mapToCdForTopic(any(CodeableConcept.class)))
361361
.thenCallRealMethod();
362362

@@ -371,7 +371,7 @@ public void When_MappingTopic_With_RelatedProblemAndNoTitle_Expect_MappedToCode(
371371
}
372372

373373
@Test
374-
public void When_MappingTopic_With_MissingDate_Expect_DateMappedFromEncounter() {
374+
void When_MappingTopic_With_MissingDate_Expect_DateMappedFromEncounter() {
375375
var expectedXml = ResourceTestFileUtils.getFileContent(EXPECTED_COMPONENTS_TOPIC_AVAILABILITY_DATE_MAPPED_FROM_ENCOUNTER);
376376
var bundle = initializeMessageContext(INPUT_BUNDLE_WITH_NO_DATE_PROVIDED_IN_TOPIC);
377377
var encounter = extractEncounter(bundle);
@@ -383,7 +383,7 @@ public void When_MappingTopic_With_MissingDate_Expect_DateMappedFromEncounter()
383383
}
384384

385385
@Test
386-
public void When_MappingCategory_WithAndWithout_Title_Expect_BothCdsPresent() {
386+
void When_MappingCategory_WithAndWithout_Title_Expect_BothCdsPresent() {
387387
when(codeableConceptCdMapper.getCdForCategory()).thenCallRealMethod();
388388
when(codeableConceptCdMapper.mapToCdForCategory(any())).thenCallRealMethod();
389389

@@ -398,7 +398,7 @@ public void When_MappingCategory_WithAndWithout_Title_Expect_BothCdsPresent() {
398398
}
399399

400400
@Test
401-
public void When_MappingTopic_WithAndWithout_Title_Expect_BothCdsPresent() {
401+
void When_MappingTopic_WithAndWithout_Title_Expect_BothCdsPresent() {
402402

403403
when(codeableConceptCdMapper.mapToCdForTopic(any(String.class))).thenCallRealMethod();
404404
when(codeableConceptCdMapper.getCdForTopic()).thenCallRealMethod();
@@ -414,7 +414,7 @@ public void When_MappingTopic_WithAndWithout_Title_Expect_BothCdsPresent() {
414414
}
415415

416416
@Test
417-
public void When_MappingTopic_WithoutCategory_Expect_ComponentsMapped() {
417+
void When_MappingTopic_WithoutCategory_Expect_ComponentsMapped() {
418418
var expectedXml = ResourceTestFileUtils.getFileContent(EXPECTED_COMPONENTS_TOPIC_NO_CATEGORIES);
419419
var bundle = initializeMessageContext(INPUT_BUNDLE_TOPIC_NO_CATEGORIES);
420420
var encounter = extractEncounter(bundle);
@@ -427,7 +427,7 @@ public void When_MappingTopic_WithoutCategory_Expect_ComponentsMapped() {
427427

428428
@ParameterizedTest
429429
@MethodSource("containedResourceMappingArguments")
430-
public void When_MappingContainedResource_Expect_ResourcesMapped(String inputBundle, String expectedComponents) {
430+
void When_MappingContainedResource_Expect_ResourcesMapped(String inputBundle, String expectedComponents) {
431431
var expectedXml = ResourceTestFileUtils.getFileContent(CONTAINED_TEST_DIRECTORY + expectedComponents);
432432
var bundle = initializeMessageContext(CONTAINED_TEST_DIRECTORY + inputBundle);
433433
var encounter = extractEncounter(bundle);

0 commit comments

Comments
 (0)