@Test(dataProvider = "4th") <T> void runConsumerShouldTolerateBadConsumers(Consumer<T> consumer, T argument) { runConsumer(consumer, argument); assertTrue(true); }
protected static <T> void runConsumer(Consumer<T> consumer, T argument) { try { if (consumer != null) { consumer.accept(argument); } } catch (Exception e) { log.error("Exception while running consumer {}: {}", consumer, e.getMessage(), e); } }
AsyncHttpClientCall implements Cloneable, okhttp3.Call { protected static <T> void runConsumer(Consumer<T> consumer, T argument) { try { if (consumer != null) { consumer.accept(argument); } } catch (Exception e) { log.error("Exception while running consumer {}: {}", consumer, e.getMessage(), e); } } }
AsyncHttpClientCall implements Cloneable, okhttp3.Call { protected static <T> void runConsumer(Consumer<T> consumer, T argument) { try { if (consumer != null) { consumer.accept(argument); } } catch (Exception e) { log.error("Exception while running consumer {}: {}", consumer, e.getMessage(), e); } }  }
AsyncHttpClientCall implements Cloneable, okhttp3.Call { protected static <T> void runConsumer(Consumer<T> consumer, T argument) { try { if (consumer != null) { consumer.accept(argument); } } catch (Exception e) { log.error("Exception while running consumer {}: {}", consumer, e.getMessage(), e); } }  @Override Request request(); @Override Response execute(); @Override void enqueue(Callback responseCallback); @Override void cancel(); @Override boolean isExecuted(); @Override boolean isCanceled(); @Override Timeout timeout(); @Override Call clone(); }
AsyncHttpClientCall implements Cloneable, okhttp3.Call { protected static <T> void runConsumer(Consumer<T> consumer, T argument) { try { if (consumer != null) { consumer.accept(argument); } } catch (Exception e) { log.error("Exception while running consumer {}: {}", consumer, e.getMessage(), e); } }  @Override Request request(); @Override Response execute(); @Override void enqueue(Callback responseCallback); @Override void cancel(); @Override boolean isExecuted(); @Override boolean isCanceled(); @Override Timeout timeout(); @Override Call clone();  }