@@ -113,16 +113,16 @@ private void initializeAgentDirectoryMocks() {
113113
114114 static Stream <Arguments > testArguments () {
115115 return Stream .of (
116- Arguments .of ("condition_all_included.json" , "expected_output_linkset_1.xml" , true ),
117- Arguments .of ("condition_all_included.json" , "expected_output_linkset_2.xml" , false ),
118- Arguments .of ("condition_major_significance.json" , "expected_output_linkset_6.xml" , false ),
119- Arguments .of ("condition_related_clinical_content_list_reference.json" , "expected_output_linkset_8.xml" , false ),
120- Arguments .of ("condition_related_clinical_content_suppressed_linkage_references.json" , "expected_output_linkset_9.xml" , false ),
121- Arguments .of ("condition_2_related_clinical_content.json" , "expected_output_linkset_10.xml" , false ),
122- Arguments .of ("condition_status_active.json" , "expected_output_linkset_11.xml" , false ),
123- Arguments .of ("condition_status_inactive.json" , "expected_output_linkset_12.xml" , false ),
124- Arguments .of ("condition_dates_present.json" , "expected_output_linkset_13.xml" , false ),
125- Arguments .of ("condition_dates_not_present.json" , "expected_output_linkset_14.xml" , false )
116+ Arguments .of ("condition_all_included.json" , "expected_output_linkset_1.xml" , true ),
117+ Arguments .of ("condition_all_included.json" , "expected_output_linkset_2.xml" , false ),
118+ Arguments .of ("condition_major_significance.json" , "expected_output_linkset_6.xml" , false ),
119+ Arguments .of ("condition_related_clinical_content_list_reference.json" , "expected_output_linkset_8.xml" , false ),
120+ Arguments .of ("condition_related_clinical_content_suppressed_linkage_references.json" , "expected_output_linkset_9.xml" , false ),
121+ Arguments .of ("condition_2_related_clinical_content.json" , "expected_output_linkset_10.xml" , false ),
122+ Arguments .of ("condition_status_active.json" , "expected_output_linkset_11.xml" , false ),
123+ Arguments .of ("condition_status_inactive.json" , "expected_output_linkset_12.xml" , false ),
124+ Arguments .of ("condition_dates_present.json" , "expected_output_linkset_13.xml" , false ),
125+ Arguments .of ("condition_dates_not_present.json" , "expected_output_linkset_14.xml" , false )
126126 );
127127 }
128128
@@ -131,16 +131,6 @@ static Stream<Arguments> testArguments() {
131131 void When_MappingParsedCondition_With_RealProblem_Expect_LinkSetXml (String conditionJson , String outputXml , boolean isNested ) {
132132 final Condition condition = getConditionResourceFromJson (conditionJson );
133133 final String expectedXml = getXmlStringFromFile (outputXml );
134- IdType conditionId = buildIdType (ResourceType .Condition , CONDITION_ID );
135-
136- when (codeableConceptCdMapper .mapCodeableConceptToCd (any (CodeableConcept .class )))
137- .thenReturn (CodeableConceptMapperMockUtil .NULL_FLAVOR_CODE );
138- mockIdMapperAndAgentDirectory ();
139- when (messageContext .getInputBundleHolder ()).thenReturn (inputBundle );
140- when (idMapper .getOrNew (ResourceType .Condition , conditionId )).thenReturn (CONDITION_ID );
141- when (idMapper .getOrNew (any (Reference .class ))).thenAnswer (answerWithObjectId (ResourceType .Condition ));
142- when (agentDirectory .getAgentId (any (Reference .class ))).thenAnswer (answerWithObjectId ());
143- doNothing ().when (conditionLinkSetMapperSpy ).testForValidReferences (any ());
144134
145135 initializeAgentDirectoryMocks ();
146136 initializeNullFlavorCodeableConceptMocks ();
0 commit comments