summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorHenri Sara <hesara@vaadin.com>2013-08-15 09:59:37 +0300
committerVaadin Code Review <review@vaadin.com>2013-08-15 07:05:20 +0000
commitbc85f31f4f17ab78a4168e333be45a90a379a952 (patch)
tree795e926bda829008b1743289d076990b71cfc08d /server
parent23a0ed5c0837c2d3257a18ae67fd217bdf73cfd0 (diff)
downloadvaadin-framework-bc85f31f4f17ab78a4168e333be45a90a379a952.tar.gz
vaadin-framework-bc85f31f4f17ab78a4168e333be45a90a379a952.zip
Fix test AbsFieldValueConversions (#12092)
Change-Id: Ifa23d60e8c1dd388c0404b9c40f00f81304778cf
Diffstat (limited to 'server')
-rw-r--r--server/tests/src/com/vaadin/tests/server/component/abstractfield/AbsFieldValueConversions.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/server/tests/src/com/vaadin/tests/server/component/abstractfield/AbsFieldValueConversions.java b/server/tests/src/com/vaadin/tests/server/component/abstractfield/AbsFieldValueConversions.java
index 9854296538..dd46b11520 100644
--- a/server/tests/src/com/vaadin/tests/server/component/abstractfield/AbsFieldValueConversions.java
+++ b/server/tests/src/com/vaadin/tests/server/component/abstractfield/AbsFieldValueConversions.java
@@ -205,14 +205,15 @@ public class AbsFieldValueConversions extends TestCase {
}
+ // Now specific to Integer because StringToNumberConverter has been removed
public static class NumberBean {
- private Number number;
+ private Integer number;
- public Number getNumber() {
+ public Integer getNumber() {
return number;
}
- public void setNumber(Number number) {
+ public void setNumber(Integer number) {
this.number = number;
}
@@ -239,7 +240,7 @@ public class AbsFieldValueConversions extends TestCase {
tf.setPropertyDataSource(new MethodProperty<Number>(nb, "number"));
Converter c2 = tf.getConverter();
assertTrue(
- "StringToNumber converter is ok for integer types and should stay even though property is changed",
+ "StringToInteger converter is ok for integer types and should stay even though property is changed",
c1 == c2);
assertEquals(490, tf.getPropertyDataSource().getValue());
assertEquals("490", tf.getValue());