summaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/minitutorials
diff options
context:
space:
mode:
authorHenri Sara <hesara@vaadin.com>2013-07-02 09:22:25 +0300
committerHenri Sara <hesara@vaadin.com>2013-07-02 09:23:28 +0300
commit24b0386b4f0d3033766562573a6a322f656bf0ed (patch)
treecc08ef2ca22f98da52bf75ae9a2172b66cc7478a /uitest/src/com/vaadin/tests/minitutorials
parentb84d2feabf34a972b42c82ead780768883591378 (diff)
downloadvaadin-framework-24b0386b4f0d3033766562573a6a322f656bf0ed.tar.gz
vaadin-framework-24b0386b4f0d3033766562573a6a322f656bf0ed.zip
Fix two tests broken by removal of StringToNumberConverter (#12092)
Change-Id: Ic1520ddf670d83ce804acf240067c85d493196ca
Diffstat (limited to 'uitest/src/com/vaadin/tests/minitutorials')
-rw-r--r--uitest/src/com/vaadin/tests/minitutorials/v7a1/FormatTableValue.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/uitest/src/com/vaadin/tests/minitutorials/v7a1/FormatTableValue.java b/uitest/src/com/vaadin/tests/minitutorials/v7a1/FormatTableValue.java
index be2768a5f7..8485bba499 100644
--- a/uitest/src/com/vaadin/tests/minitutorials/v7a1/FormatTableValue.java
+++ b/uitest/src/com/vaadin/tests/minitutorials/v7a1/FormatTableValue.java
@@ -3,7 +3,7 @@ package com.vaadin.tests.minitutorials.v7a1;
import java.text.NumberFormat;
import java.util.Locale;
-import com.vaadin.data.util.converter.StringToNumberConverter;
+import com.vaadin.data.util.converter.StringToDoubleConverter;
import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractTestUI;
import com.vaadin.ui.Table;
@@ -30,14 +30,14 @@ public class FormatTableValue extends AbstractTestUI {
table.getItem(itemId).getItemProperty(DEFAULT_PROPERTY)
.setValue(3.1415);
- table.setConverter(PERCENT_PROPERTY, new StringToNumberConverter() {
+ table.setConverter(PERCENT_PROPERTY, new StringToDoubleConverter() {
@Override
protected NumberFormat getFormat(Locale locale) {
return NumberFormat.getPercentInstance(locale);
}
});
- table.setConverter(CURRENCY_PROPERTY, new StringToNumberConverter() {
+ table.setConverter(CURRENCY_PROPERTY, new StringToDoubleConverter() {
@Override
protected NumberFormat getFormat(Locale locale) {
return NumberFormat.getCurrencyInstance(locale);