diff options
author | Leif Åstrand <leif@vaadin.com> | 2012-08-30 13:05:19 +0300 |
---|---|---|
committer | Leif Åstrand <leif@vaadin.com> | 2012-08-30 13:05:19 +0300 |
commit | 7411bd0456f6dca3f8c25a5050ea786f90c6af0f (patch) | |
tree | a94bee85aa9c8e4973dd93c1217fa7f58ffefcc2 /tests/testbench/com/vaadin | |
parent | 6d4c07fdd3bc6c7935047ea779d27707198abb6a (diff) | |
download | vaadin-framework-7411bd0456f6dca3f8c25a5050ea786f90c6af0f.tar.gz vaadin-framework-7411bd0456f6dca3f8c25a5050ea786f90c6af0f.zip |
Refactor to enable implementing #7545 without changing the API
Diffstat (limited to 'tests/testbench/com/vaadin')
-rw-r--r-- | tests/testbench/com/vaadin/tests/tickets/Ticket1589.java | 2 | ||||
-rw-r--r-- | tests/testbench/com/vaadin/tests/tickets/Ticket2292.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket1589.java b/tests/testbench/com/vaadin/tests/tickets/Ticket1589.java index b1b652381f..37f9197285 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket1589.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket1589.java @@ -91,7 +91,7 @@ class MyDynamicResource implements RequestHandler { downloadStream.setParameter("Content-Disposition", "attachment; filename=\"downloadedPNG.png\""); } - downloadStream.writeTo(response); + downloadStream.writeResponse(request, response); return true; } catch (IOException e) { return false; diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket2292.java b/tests/testbench/com/vaadin/tests/tickets/Ticket2292.java index c4c600edaa..1e7fe5d78a 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket2292.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket2292.java @@ -87,7 +87,7 @@ public class Ticket2292 extends com.vaadin.Application.LegacyApplication // Return a stream from the buffer. ByteArrayInputStream istream = new ByteArrayInputStream( imagebuffer.toByteArray()); - new DownloadStream(istream, null, null).writeTo(response); + new DownloadStream(istream, null, null).writeResponse(request, response); return true; } catch (IOException e) { return false; |