summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2015-03-31 10:40:47 +0300
committerMarkus Koivisto <markus@vaadin.com>2015-04-15 11:33:24 +0300
commit445b14801073025005d22a64d372c455987a604d (patch)
tree7a05c665a0e56af3de18bc3433e33518b9b9aca2
parent9c9fc07f62ddaf5b9d27b0e09e91673a196e5a7f (diff)
downloadvaadin-framework-445b14801073025005d22a64d372c455987a604d.tar.gz
vaadin-framework-445b14801073025005d22a64d372c455987a604d.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());