@Test public void test_get_distance_between_points_returns_a_double() { DistancedSort distancedSort = new DistancedSort(0, false); PointF firstPoint = Mockito.mock(PointF.class); PointF secondPoint = Mockito.mock(PointF.class); Assert.assertThat(distancedSort.getDistanceBetweenPoints(firstPoint, secondPoint), CoreMatchers.instanceOf(Double.class)); }
public double getDistanceBetweenPoints(PointF left, PointF right) { return Utils.euclideanDistance(left, right); }
DistancedSort extends SortFunction { public double getDistanceBetweenPoints(PointF left, PointF right) { return Utils.euclideanDistance(left, right); } }
DistancedSort extends SortFunction { public double getDistanceBetweenPoints(PointF left, PointF right) { return Utils.euclideanDistance(left, right); } DistancedSort(long interObjectDelay, boolean reversed); }
DistancedSort extends SortFunction { public double getDistanceBetweenPoints(PointF left, PointF right) { return Utils.euclideanDistance(left, right); } DistancedSort(long interObjectDelay, boolean reversed); @Override List<SpruceTimedView> getViewListWithTimeOffsets(ViewGroup parent, List<View> children); @Override void sortChildren(ViewGroup parent, List<View> children); PointF getDistancePoint(ViewGroup parent, List<View> children); double getDistanceBetweenPoints(PointF left, PointF right); }
DistancedSort extends SortFunction { public double getDistanceBetweenPoints(PointF left, PointF right) { return Utils.euclideanDistance(left, right); } DistancedSort(long interObjectDelay, boolean reversed); @Override List<SpruceTimedView> getViewListWithTimeOffsets(ViewGroup parent, List<View> children); @Override void sortChildren(ViewGroup parent, List<View> children); PointF getDistancePoint(ViewGroup parent, List<View> children); double getDistanceBetweenPoints(PointF left, PointF right);  }