summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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());