import org.openecomp.dcae.apod.analytics.cdap.tca.settings.TCAAppPreferences;\r
import org.openecomp.dcae.apod.analytics.model.domain.policy.tca.TCAPolicy;\r
\r
+import java.util.Map;\r
+\r
import static org.hamcrest.CoreMatchers.is;\r
import static org.junit.Assert.assertEquals;\r
import static org.junit.Assert.assertThat;\r
@Test\r
public void testGetValidatedTCAAppPreferences() throws Exception {\r
RuntimeContext runtimeContext = mock(RuntimeContext.class);\r
- when(runtimeContext.getRuntimeArguments()).thenReturn(getPreferenceMap());\r
+ final Map<String, String> preferenceMap = getPreferenceMap();\r
+ preferenceMap.remove("subscriberHostName");\r
+ preferenceMap.remove("publisherHostName");\r
+ when(runtimeContext.getRuntimeArguments()).thenReturn(preferenceMap);\r
ApplicationSpecification mockApplicationSpecification = Mockito.mock(ApplicationSpecification.class);\r
when(mockApplicationSpecification.getConfiguration()).thenReturn(fromStream(TCA_APP_CONFIG_FILE_LOCATION));\r
when(runtimeContext.getApplicationSpecification()).thenReturn(mockApplicationSpecification);\r