@Test public void test_get_distance_point_returns_a_point() { ViewGroup mockParent = Mockito.mock(ViewGroup.class); List<View> mockChildren = new ArrayList<>(); mockChildren.add(Mockito.mock(View.class)); DistancedSort distancedSort = new DistancedSort(0, false); Assert.assertThat(distancedSort.getDistancePoint(mockParent, mockChildren), CoreMatchers.instanceOf(PointF.class)); }
public PointF getDistancePoint(ViewGroup parent, List<View> children) { PointF distancePoint = new PointF(0, 0); return translate(distancePoint, children); }
DistancedSort extends SortFunction { public PointF getDistancePoint(ViewGroup parent, List<View> children) { PointF distancePoint = new PointF(0, 0); return translate(distancePoint, children); } }
DistancedSort extends SortFunction { public PointF getDistancePoint(ViewGroup parent, List<View> children) { PointF distancePoint = new PointF(0, 0); return translate(distancePoint, children); } DistancedSort(long interObjectDelay, boolean reversed); }
DistancedSort extends SortFunction { public PointF getDistancePoint(ViewGroup parent, List<View> children) { PointF distancePoint = new PointF(0, 0); return translate(distancePoint, children); } 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 PointF getDistancePoint(ViewGroup parent, List<View> children) { PointF distancePoint = new PointF(0, 0); return translate(distancePoint, children); } 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);  }