summaryrefslogtreecommitdiffstats
path: root/server/tests/src
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2016-01-20 16:29:18 +0200
committerArtur Signell <artur@vaadin.com>2016-02-03 16:43:47 +0200
commitc5083844600c49e7e25e3947f53c50c6284fb5f5 (patch)
tree138f7f63e66845e36fa088f431703fd3dd3575cc /server/tests/src
parent7fc5844508f555c0e12df6fd6407907642a0d46c (diff)
downloadvaadin-framework-c5083844600c49e7e25e3947f53c50c6284fb5f5.tar.gz
vaadin-framework-c5083844600c49e7e25e3947f53c50c6284fb5f5.zip
Make project Java 8 compatible
Change-Id: I875e152b8851d7b962be47f369c1f6b483193260
Diffstat (limited to 'server/tests/src')
-rw-r--r--server/tests/src/com/vaadin/tests/design/DesignFormatterTest.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/server/tests/src/com/vaadin/tests/design/DesignFormatterTest.java b/server/tests/src/com/vaadin/tests/design/DesignFormatterTest.java
index 6510d8ad40..e2a91000c1 100644
--- a/server/tests/src/com/vaadin/tests/design/DesignFormatterTest.java
+++ b/server/tests/src/com/vaadin/tests/design/DesignFormatterTest.java
@@ -143,8 +143,11 @@ public class DesignFormatterTest {
public void testFloatingPoint() {
float f = 123.4567f;
assertEquals("123.457", formatter.format(f));
- assertEquals(f, formatter.parse("123.4567", float.class), 1e-4);
- assertEquals(f, formatter.parse("123.4567", Float.class), 1e-4);
+
+ float f1 = formatter.parse("123.4567", float.class);
+ assertEquals(f, f1, 1e-4);
+ Float f2 = formatter.parse("123.4567", Float.class);
+ assertEquals(f, f2, 1e-4);
double d = 123456789.123456789;
assertEquals("123456789.123", formatter.format(d));