Этот тест проверяет правильность метода сортировки самолетов.Скажите, пожалуйста, почему comparing () и reverseOrder () пишет "не удается разрешить метод"?Как я могу это исправить?
@Test
public void testPlanesSortedByMaxLoadCapacity() {
Airport airport = new Airport(planes);
airport.sortByMaxLoadCapacity();
List<? extends Plane> sortedPlanes = airport.getPlanes();
planes.sort(comparing(Plane::getMaxLoadCapacity, reverseOrder()));
Assert.assertEquals(planes, sortedPlanes);
}
Мне очень нужна ваша помощь