verifyNoMoreInteractions(httpClient, httpResponse, statusLine, entity);
}
- @Test
- public void shouldNotGetHttpRequest_whenCredencialsAreNotProvided() {
-
- httpDmaapConsumer.updateCredentials(null, null);
-
- List<String> output = httpDmaapConsumer.fetch(TIMEOUT_MS, LIMIT);
-
- assertTrue(output.isEmpty());
- verifyNoMoreInteractions(httpClient, httpResponse, statusLine, entity);
- }
-
@Test
public void shouldNotBeSuccessful_whenHttpResponseIsOtherThanOk() throws Exception {