aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/test/java/com/vaadin/tests/design/DeclarativeTestBaseBase.java
diff options
context:
space:
mode:
authorDenis Anisimov <denis@vaadin.com>2016-09-19 16:26:32 +0300
committerDenis Anisimov <denis@vaadin.com>2016-11-24 11:03:23 +0300
commit159d413602380497b189e5cabbdd9ecf6431c725 (patch)
tree85de070c7dae0a8792eeafa70e7c17d38ad5fe7c /server/src/test/java/com/vaadin/tests/design/DeclarativeTestBaseBase.java
parentfdc80972f55adc3bc2b987d40d3b4e628635f42f (diff)
downloadvaadin-framework-159d413602380497b189e5cabbdd9ecf6431c725.tar.gz
vaadin-framework-159d413602380497b189e5cabbdd9ecf6431c725.zip
Provide declarative support for listing components.
Fixes vaadin/framework8-issues#388 Change-Id: I4f8045bba51d308f4343a1f6d01b3f1ddca63e69
Diffstat (limited to 'server/src/test/java/com/vaadin/tests/design/DeclarativeTestBaseBase.java')
-rw-r--r--server/src/test/java/com/vaadin/tests/design/DeclarativeTestBaseBase.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/server/src/test/java/com/vaadin/tests/design/DeclarativeTestBaseBase.java b/server/src/test/java/com/vaadin/tests/design/DeclarativeTestBaseBase.java
index e2e8148871..161d053cca 100644
--- a/server/src/test/java/com/vaadin/tests/design/DeclarativeTestBaseBase.java
+++ b/server/src/test/java/com/vaadin/tests/design/DeclarativeTestBaseBase.java
@@ -219,11 +219,12 @@ public abstract class DeclarativeTestBaseBase<T extends Component> {
Assert.assertEquals("", l.getMessages());
}
- public void testWrite(String design, T expected, boolean writeData) {
- String written = write(expected, writeData);
+ public void testWrite(String expectedDesign, T component,
+ boolean writeData) {
+ String written = write(component, writeData);
Element producedElem = Jsoup.parse(written).body().child(0);
- Element comparableElem = Jsoup.parse(design).body().child(0);
+ Element comparableElem = Jsoup.parse(expectedDesign).body().child(0);
String produced = elementToHtml(producedElem);
String comparable = elementToHtml(comparableElem);