diff options
author | Jon Bratseth <bratseth@gmail.com> | 2022-04-29 17:57:50 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@gmail.com> | 2022-04-29 17:57:50 +0200 |
commit | abb29ce91cd648aa73b6c4c26cb4b82f107f5c38 (patch) | |
tree | ab52e0e45d05a579692394fd0ed2683f15ac53ef /container-core | |
parent | 2c36f7c97ed9747101945c7958c7ec4be6763f6e (diff) |
Use renderResponse
Diffstat (limited to 'container-core')
-rw-r--r-- | container-core/src/test/java/com/yahoo/processing/rendering/AsynchronousSectionedRendererTest.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/container-core/src/test/java/com/yahoo/processing/rendering/AsynchronousSectionedRendererTest.java b/container-core/src/test/java/com/yahoo/processing/rendering/AsynchronousSectionedRendererTest.java index 0ea8a157410..a6db21d5094 100644 --- a/container-core/src/test/java/com/yahoo/processing/rendering/AsynchronousSectionedRendererTest.java +++ b/container-core/src/test/java/com/yahoo/processing/rendering/AsynchronousSectionedRendererTest.java @@ -31,7 +31,7 @@ import static org.junit.Assert.assertNotSame; import static org.junit.Assert.assertSame; /** - * @author <a href="mailto:einarmr@yahoo-inc.com">Einar M R Rosenvinge</a> + * @author Einar M R Rosenvinge */ public class AsynchronousSectionedRendererTest { @@ -222,14 +222,14 @@ public class AsynchronousSectionedRendererTest { return render(renderer, data); } - @SuppressWarnings({"unchecked", "removal"}) + @SuppressWarnings({"unchecked"}) public String render(Renderer renderer, DataList data) throws InterruptedException, IOException { TestContentChannel contentChannel = new TestContentChannel(); Execution execution = Execution.createRoot(new NoopProcessor(), 0, null); final ContentChannelOutputStream stream = new ContentChannelOutputStream(contentChannel); - ListenableFuture result = renderer.render(stream, new Response(data), execution, null); + CompletableFuture<Boolean> result = renderer.renderResponse(stream, new Response(data), execution, null); int waitCounter = 1000; while (!result.isDone()) { |