Map<String, String> mockParams = Mockito.mock(Map.class);
Mockito.when(mockParams.get("org.onap.appc.instance.URI")).thenThrow(new RuntimeException("\n\n"));
adapter.createHttpRequest("test_method", mockParams, new RequestContext(new SvcLogicContext()));
+ assertNotNull(mockParams);
}
@Test
SvcLogicContext ctx = new SvcLogicContext();
Map<String, String> params = new HashMap<>();
adapter.commonGet(params, ctx);
+ assertNotNull(params);
}
@Test