From 417d0e39523b013b1d102c3b5e282deb4a3ec63f Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Tue, 31 Mar 2015 10:40:47 +0300 Subject: [PATCH] Make test work in uitest.war Change-Id: I8db1b39e2b6372b460550c56884d3bea47c1155e --- .../src/com/vaadin/tests/declarative/DeclarativeEditor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uitest/src/com/vaadin/tests/declarative/DeclarativeEditor.java b/uitest/src/com/vaadin/tests/declarative/DeclarativeEditor.java index 17942ee201..d62f71b513 100644 --- a/uitest/src/com/vaadin/tests/declarative/DeclarativeEditor.java +++ b/uitest/src/com/vaadin/tests/declarative/DeclarativeEditor.java @@ -15,11 +15,11 @@ */ package com.vaadin.tests.declarative; +import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import org.apache.commons.io.IOUtils; -import org.apache.tools.ant.filters.StringInputStream; import com.vaadin.annotations.Theme; import com.vaadin.data.Property.ReadOnlyException; @@ -87,7 +87,7 @@ public class DeclarativeEditor extends UI { return; } - dc = Design.read(new StringInputStream(string), null); + dc = Design.read(new ByteArrayInputStream(string.getBytes()), null); treeHolder.removeAllComponents(); treeHolder.addComponent(dc.getRootComponent()); -- 2.39.5