We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f451f2 commit 3fdda66Copy full SHA for 3fdda66
1 file changed
single-table-inheritance/src/test/java/com/iluwatar/service/VehicleServiceTest.java
@@ -51,6 +51,7 @@
51
@SpringBootTest
52
class VehicleServiceTest {
53
54
+ private static final double DELTA = 0.001;
55
56
@Autowired private VehicleService vehicleService;
57
@@ -109,7 +110,7 @@ void saveVehicle_shouldPersistTrainWithCorrectType() {
109
110
void saveVehicle_shouldPersistFreighterWithCorrectType() {
111
assertTrue(savedFreighter.getVehicleId() > 0);
112
assertInstanceOf(Freighter.class, savedFreighter);
- assertEquals(8130.0, ((Freighter) savedFreighter).getFlightLength());
113
+ assertEquals(8130.0, ((Freighter) savedFreighter).getFlightLength(), DELTA);
114
}
115
116
0 commit comments