aboutsummaryrefslogtreecommitdiffstats
path: root/server/tests/src/com/vaadin
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2015-02-05 11:20:38 +0200
committerLeif Åstrand <leif@vaadin.com>2015-02-05 12:51:57 +0000
commit3c0a9961b0965b8cd0d88af8f3f4971c09ab271a (patch)
treea61735ac98770381c0592992dc0501e661d01662 /server/tests/src/com/vaadin
parentedabf251a53762d5bf45a70be757e5b0bd48d25a (diff)
downloadvaadin-framework-3c0a9961b0965b8cd0d88af8f3f4971c09ab271a.tar.gz
vaadin-framework-3c0a9961b0965b8cd0d88af8f3f4971c09ab271a.zip
Render Object.toString() when no converter is set (#15417)
Change-Id: I8a00857d5829cd01ceb98c4264029f62e45e7073
Diffstat (limited to 'server/tests/src/com/vaadin')
-rw-r--r--server/tests/src/com/vaadin/tests/server/renderer/RendererTest.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/server/tests/src/com/vaadin/tests/server/renderer/RendererTest.java b/server/tests/src/com/vaadin/tests/server/renderer/RendererTest.java
index 464d409543..f6a766bd07 100644
--- a/server/tests/src/com/vaadin/tests/server/renderer/RendererTest.java
+++ b/server/tests/src/com/vaadin/tests/server/renderer/RendererTest.java
@@ -44,6 +44,11 @@ public class RendererTest {
private static class TestBean {
int i = 42;
+
+ @Override
+ public String toString() {
+ return "TestBean [" + i + "]";
+ }
}
private static class ExtendedBean extends TestBean {
@@ -177,7 +182,7 @@ public class RendererTest {
@Test
public void testEncodingWithoutConverter() throws Exception {
- assertEquals("", render(baz, new TestBean()).asString());
+ assertEquals("TestBean [42]", render(baz, new TestBean()).asString());
}
@Test