summaryrefslogtreecommitdiffstats
path: root/tests/testbench/com/vaadin
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2012-08-30 13:05:19 +0300
committerLeif Åstrand <leif@vaadin.com>2012-08-30 13:05:19 +0300
commit7411bd0456f6dca3f8c25a5050ea786f90c6af0f (patch)
treea94bee85aa9c8e4973dd93c1217fa7f58ffefcc2 /tests/testbench/com/vaadin
parent6d4c07fdd3bc6c7935047ea779d27707198abb6a (diff)
downloadvaadin-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.java2
-rw-r--r--tests/testbench/com/vaadin/tests/tickets/Ticket2292.java2
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;