diff options
author | Artur Signell <artur@vaadin.com> | 2011-12-21 18:50:31 +0200 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2011-12-21 18:50:31 +0200 |
commit | 50ad71fb78aa2fa4bfb7d93396c12303ae9c4878 (patch) | |
tree | 0f8be0dee11f50cfd8a2892a60347b55170e3582 /tests/server-side | |
parent | 4f9f92e8a900d3fb52dc106a5d0b2944a4fd4a92 (diff) | |
download | vaadin-framework-50ad71fb78aa2fa4bfb7d93396c12303ae9c4878.tar.gz vaadin-framework-50ad71fb78aa2fa4bfb7d93396c12303ae9c4878.zip |
#8102 Removed "value" from value converter used in AbstractField and
renamed updateValueConverterFromFactory to setConverter based on API
review meeting.
Diffstat (limited to 'tests/server-side')
-rw-r--r-- | tests/server-side/com/vaadin/tests/server/component/abstractfield/AbstractFieldValueConversions.java | 10 |
1 files changed, 5 insertions, 5 deletions
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<String, String>() {
+ tf.setConverter(new Converter<String, String>() {
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<Integer, String>() {
+ tf.setConverter(new Converter<Integer, String>() {
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<Integer>(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<Boolean, Boolean>() {
+ cb.setConverter(new Converter<Boolean, Boolean>() {
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);
|