@Test public void given_GivenRecords_ShouldDelegateToWriterPutMethod() throws IOException { List<String> expected = ImmutableList.of(UUID.randomUUID().toString()); setup.given(expected); Mockito.verify(spyWriter).put(expected); }
public InputSetup<TRecord, TResponse> given(List<TRecord> records) throws IOException { this.responseHandler.accept(writer.put(records)); return this; }
InputSetup { public InputSetup<TRecord, TResponse> given(List<TRecord> records) throws IOException { this.responseHandler.accept(writer.put(records)); return this; } }
InputSetup { public InputSetup<TRecord, TResponse> given(List<TRecord> records) throws IOException { this.responseHandler.accept(writer.put(records)); return this; } InputSetup(Writer<TRecord, TResponse> writer); }
InputSetup { public InputSetup<TRecord, TResponse> given(List<TRecord> records) throws IOException { this.responseHandler.accept(writer.put(records)); return this; } InputSetup(Writer<TRecord, TResponse> writer); InputSetup<TRecord, TResponse> thenWait(Long millis); InputSetup<TRecord, TResponse> withResponseHandler(Consumer<TResponse> responseHandler); InputSetup<TRecord, TResponse> given(List<TRecord> records); }
InputSetup { public InputSetup<TRecord, TResponse> given(List<TRecord> records) throws IOException { this.responseHandler.accept(writer.put(records)); return this; } InputSetup(Writer<TRecord, TResponse> writer); InputSetup<TRecord, TResponse> thenWait(Long millis); InputSetup<TRecord, TResponse> withResponseHandler(Consumer<TResponse> responseHandler); InputSetup<TRecord, TResponse> given(List<TRecord> records);  }