]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixed test issues with type=null (#11895)
authorArtur Signell <artur@vaadin.com>
Fri, 14 Jun 2013 10:20:00 +0000 (13:20 +0300)
committerArtur Signell <artur@vaadin.com>
Fri, 14 Jun 2013 10:20:26 +0000 (13:20 +0300)
Change-Id: I1618191f534ef75048dbae95564ef30a320114a4

server/tests/src/com/vaadin/tests/data/converter/TestStringToBooleanConverter.java
server/tests/src/com/vaadin/tests/data/converter/TestStringToDateConverter.java
server/tests/src/com/vaadin/tests/data/converter/TestStringToDoubleConverter.java
server/tests/src/com/vaadin/tests/data/converter/TestStringToFloatConverter.java
server/tests/src/com/vaadin/tests/data/converter/TestStringToIntegerConverter.java
server/tests/src/com/vaadin/tests/data/converter/TestStringToNumberConverter.java

index f236bb4000a915ad96be0b73cf51a7ed0ecbd8eb..7be922a63a572f30dcc1a4b2055a472dee086282 100644 (file)
@@ -9,7 +9,7 @@ public class TestStringToBooleanConverter extends TestCase {
     StringToBooleanConverter converter = new StringToBooleanConverter();
 
     public void testNullConversion() {
-        assertEquals(null, converter.convertToModel(null, null, null));
+        assertEquals(null, converter.convertToModel(null, Boolean.class, null));
     }
 
     public void testEmptyStringConversion() {
index 59314bd5ee1be6a953747b882d9697c521dcf394..eb0e1461b2d630d384baac4c7bc6c138ce1816dc 100644 (file)
@@ -12,7 +12,7 @@ public class TestStringToDateConverter extends TestCase {
     StringToDateConverter converter = new StringToDateConverter();
 
     public void testNullConversion() {
-        assertEquals(null, converter.convertToModel(null, null, null));
+        assertEquals(null, converter.convertToModel(null, Date.class, null));
     }
 
     public void testEmptyStringConversion() {
index 739f9b7d5adb0ff66b11c0e1cd695e23b2674953..14691bd9222838456cee697ac57623749bc9ebb0 100644 (file)
@@ -9,7 +9,7 @@ public class TestStringToDoubleConverter extends TestCase {
     StringToDoubleConverter converter = new StringToDoubleConverter();
 
     public void testNullConversion() {
-        assertEquals(null, converter.convertToModel(null, null, null));
+        assertEquals(null, converter.convertToModel(null, Double.class, null));
     }
 
     public void testEmptyStringConversion() {
index 3bb2b3649ed88fe9721e2d98af949a37bb93ff99..6721a92b1a10e61d04a121c6842c874e445d51ab 100644 (file)
@@ -9,7 +9,7 @@ public class TestStringToFloatConverter extends TestCase {
     StringToFloatConverter converter = new StringToFloatConverter();
 
     public void testNullConversion() {
-        assertEquals(null, converter.convertToModel(null, null, null));
+        assertEquals(null, converter.convertToModel(null, Float.class, null));
     }
 
     public void testEmptyStringConversion() {
index 7f247b791f150003c68ab0e78142183984fb2da2..c73853578eba9699d8d75cc01b97219a75be4f4e 100644 (file)
@@ -9,7 +9,7 @@ public class TestStringToIntegerConverter extends TestCase {
     StringToIntegerConverter converter = new StringToIntegerConverter();
 
     public void testNullConversion() {
-        assertEquals(null, converter.convertToModel(null, null, null));
+        assertEquals(null, converter.convertToModel(null, Integer.class, null));
     }
 
     public void testEmptyStringConversion() {
index 9c322cd30147627a0790b2d44815acf1cf285a66..66fc4f6532512aee1293d27137ce7ed652d65f05 100644 (file)
@@ -9,7 +9,7 @@ public class TestStringToNumberConverter extends TestCase {
     StringToNumberConverter converter = new StringToNumberConverter();
 
     public void testNullConversion() {
-        assertEquals(null, converter.convertToModel(null, null, null));
+        assertEquals(null, converter.convertToModel(null, Number.class, null));
     }
 
     public void testEmptyStringConversion() {