This is an automated email from the ASF dual-hosted git repository.

ahuber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/isis.git


The following commit(s) were added to refs/heads/master by this push:
     new f2717d2be5 ISIS-3162: demo: fix broken number equals tests
f2717d2be5 is described below

commit f2717d2be5745c56ab5ed2c7533943e9cf114191
Author: andi-huber <[email protected]>
AuthorDate: Fri Sep 16 23:10:40 2022 +0200

    ISIS-3162: demo: fix broken number equals tests
---
 .../customui/geocoding/GeoapifyClientTest_geocode.java        | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git 
a/examples/demo/domain/src/test/java/demoapp/dom/featured/customui/geocoding/GeoapifyClientTest_geocode.java
 
b/examples/demo/domain/src/test/java/demoapp/dom/featured/customui/geocoding/GeoapifyClientTest_geocode.java
index 65f85c84a5..3316d683b7 100644
--- 
a/examples/demo/domain/src/test/java/demoapp/dom/featured/customui/geocoding/GeoapifyClientTest_geocode.java
+++ 
b/examples/demo/domain/src/test/java/demoapp/dom/featured/customui/geocoding/GeoapifyClientTest_geocode.java
@@ -18,12 +18,12 @@
  */
 package demoapp.dom.featured.customui.geocoding;
 
-import org.assertj.core.api.SoftAssertions;
 import org.junit.jupiter.api.Test;
 
-import lombok.val;
+import static org.junit.jupiter.api.Assertions.assertEquals;
 
 import demoapp.dom.AppConfiguration;
+import lombok.val;
 
 class GeoapifyClientTest_geocode {
 
@@ -38,10 +38,7 @@ class GeoapifyClientTest_geocode {
         val latLng = client.geocode("38 Upper Montagu Street, Westminster W1H 
1LJ, United Kingdom");
 
         // then
-        val softly = new SoftAssertions();
-        softly.assertThat(latLng.getLatitude()).isEqualTo("51.52016005");
-        
softly.assertThat(latLng.getLongitude()).isEqualTo("-0.16030636023550826");
-
-        softly.assertAll();
+        assertEquals(Double.valueOf(latLng.getLatitude()), 51.520, 1E-2);
+        assertEquals(Double.valueOf(latLng.getLongitude()), -0.160, 1E-2);
     }
 }

Reply via email to