summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2015-03-31 10:40:47 +0300
committerVaadin Code Review <review@vaadin.com>2015-03-31 10:28:13 +0000
commit417d0e39523b013b1d102c3b5e282deb4a3ec63f (patch)
tree79566e32c4d21f528820344e1775ab2b2cdd18fd
parent015cfe537fcbf1e31e57dd0c04a70d6408981eae (diff)
downloadvaadin-framework-417d0e39523b013b1d102c3b5e282deb4a3ec63f.tar.gz
vaadin-framework-417d0e39523b013b1d102c3b5e282deb4a3ec63f.zip
Make test work in uitest.war
Change-Id: I8db1b39e2b6372b460550c56884d3bea47c1155e
-rw-r--r--uitest/src/com/vaadin/tests/declarative/DeclarativeEditor.java4
1 files 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());