@Test public void testCallSucceedsWhenServiceUnavailable() { client = newEventClient(ImmutableSet.of()); client.post(new FixedDummyEventClass("host", new DateTime(), UUID.randomUUID(), 1, "foo")); assertNull(servlet.lastPath); assertNull(servlet.lastBody); }
@SafeVarargs @Override public final <T> ListenableFuture<Void> post(T... event) throws IllegalArgumentException { requireNonNull(event, "event is null"); return post(Arrays.asList(event)); }
HttpEventClient implements EventClient { @SafeVarargs @Override public final <T> ListenableFuture<Void> post(T... event) throws IllegalArgumentException { requireNonNull(event, "event is null"); return post(Arrays.asList(event)); } }
HttpEventClient implements EventClient { @SafeVarargs @Override public final <T> ListenableFuture<Void> post(T... event) throws IllegalArgumentException { requireNonNull(event, "event is null"); return post(Arrays.asList(event)); } @Inject  HttpEventClient(
            JsonEventWriter eventWriter,
            NodeInfo nodeInfo,
            @ForEventClient HttpClient httpClient); }
HttpEventClient implements EventClient { @SafeVarargs @Override public final <T> ListenableFuture<Void> post(T... event) throws IllegalArgumentException { requireNonNull(event, "event is null"); return post(Arrays.asList(event)); } @Inject  HttpEventClient(
            JsonEventWriter eventWriter,
            NodeInfo nodeInfo,
            @ForEventClient HttpClient httpClient); @Flatten RequestStats getStats(); @SafeVarargs @Override final ListenableFuture<Void> post(T... event); @Override ListenableFuture<Void> post(final Iterable<T> events); }
HttpEventClient implements EventClient { @SafeVarargs @Override public final <T> ListenableFuture<Void> post(T... event) throws IllegalArgumentException { requireNonNull(event, "event is null"); return post(Arrays.asList(event)); } @Inject  HttpEventClient(
            JsonEventWriter eventWriter,
            NodeInfo nodeInfo,
            @ForEventClient HttpClient httpClient); @Flatten RequestStats getStats(); @SafeVarargs @Override final ListenableFuture<Void> post(T... event); @Override ListenableFuture<Void> post(final Iterable<T> events);  }