From 50ad71fb78aa2fa4bfb7d93396c12303ae9c4878 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Wed, 21 Dec 2011 18:50:31 +0200 Subject: #8102 Removed "value" from value converter used in AbstractField and renamed updateValueConverterFromFactory to setConverter based on API review meeting. --- .../component/abstractfield/AbstractFieldValueConversions.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/server-side') diff --git a/tests/server-side/com/vaadin/tests/server/component/abstractfield/AbstractFieldValueConversions.java b/tests/server-side/com/vaadin/tests/server/component/abstractfield/AbstractFieldValueConversions.java index 0bc40097d2..f39b479943 100644 --- a/tests/server-side/com/vaadin/tests/server/component/abstractfield/AbstractFieldValueConversions.java +++ b/tests/server-side/com/vaadin/tests/server/component/abstractfield/AbstractFieldValueConversions.java @@ -34,7 +34,7 @@ public class AbstractFieldValueConversions extends TestCase { public void testStringIdentityConversion() { TextField tf = new TextField(); - tf.setValueConverter(new Converter() { + tf.setConverter(new Converter() { public String convertFromTargetToSource(String value, Locale locale) { return value; @@ -64,7 +64,7 @@ public class AbstractFieldValueConversions extends TestCase { public void testFailingConversion() { TextField tf = new TextField(); - tf.setValueConverter(new Converter() { + tf.setConverter(new Converter() { public Integer convertFromTargetToSource(String value, Locale locale) { throw new ConversionException("Failed"); @@ -95,7 +95,7 @@ public class AbstractFieldValueConversions extends TestCase { public void testIntegerStringConversion() { TextField tf = new TextField(); - tf.setValueConverter(new IntegerToStringConverter()); + tf.setConverter(new IntegerToStringConverter()); tf.setPropertyDataSource(new MethodProperty(paulaBean, "age")); assertEquals(34, tf.getPropertyDataSource().getValue()); assertEquals("34", tf.getValue()); @@ -109,7 +109,7 @@ public class AbstractFieldValueConversions extends TestCase { public void testBooleanNullConversion() { CheckBox cb = new CheckBox(); - cb.setValueConverter(new Converter() { + cb.setConverter(new Converter() { public Boolean convertFromTargetToSource(Boolean value, Locale locale) { @@ -143,7 +143,7 @@ public class AbstractFieldValueConversions extends TestCase { cb.setPropertyDataSource(property); assertEquals(Boolean.FALSE, property.getValue()); assertEquals(Boolean.FALSE, cb.getValue()); - Boolean newDmValue = cb.getValueConverter().convertFromSourceToTarget( + Boolean newDmValue = cb.getConverter().convertFromSourceToTarget( cb.getValue(), new Locale("fi", "FI")); assertEquals(Boolean.FALSE, newDmValue); -- cgit v1.2.3