mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 14:28:43 +00:00
Changed testUpdateYachtWithCollision to use MARK_COLLISION_DISTANCE
Changed testUpdateYachtWithCollision to use MARK_COLLISION_DISTANCE constant. #story[1117]
This commit is contained in:
@@ -49,7 +49,9 @@ public class UpdateYachtTest {
|
||||
|
||||
// Making sure no collision
|
||||
Double distance = GeoUtility.getDistance(yacht1.getLocation(), geoPoint2);
|
||||
Assert.assertTrue(distance > 10.0);
|
||||
|
||||
// Using mark collision distance as it will be smaller than boat collision distance
|
||||
Assert.assertTrue(distance > Yacht.MARK_COLLISION_DISTANCE);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user