@Override protected FactoryBasedNavigableIterableAssert<?, Iterable<Vehicle>, Vehicle, VehicleAssert> buildNavigableAssert() { AssertFactory<Vehicle, VehicleAssert> assertFactory = new AssertFactory<Vehicle, VehicleAssert>() { @Override public VehicleAssert createAssert(Vehicle vehicle) { return VehicleAssert.assertThat(vehicle); } }; return assertThat(expectedVehicles, assertFactory); }
@Override protected FactoryBasedNavigableListAssert<?, List<Vehicle>, Vehicle, VehicleAssert> buildNavigableAssert() { AssertFactory<Vehicle, VehicleAssert> assertFactory = new AssertFactory<Vehicle, VehicleAssert>() { @Override public VehicleAssert createAssert(Vehicle vehicle) { return VehicleAssert.assertThat(vehicle); } }; return assertThat(expectedVehicles, assertFactory); }
/** * Delegate call to public static <ACTUAL,ELEMENT,ELEMENT_ASSERT> org.assertj.core.api.FactoryBasedNavigableIterableAssert<?, ACTUAL, ELEMENT, ELEMENT_ASSERT> org.assertj.core.api.Assertions.assertThat(java.lang.Iterable<? extends ELEMENT>,org.assertj.core.api.AssertFactory<ELEMENT, ELEMENT_ASSERT>) * {@link org.assertj.core.api.Assertions#assertThat(java.lang.Iterable,org.assertj.core.api.AssertFactory)} */ default <ACTUAL extends Iterable<? extends ELEMENT>,ELEMENT,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT, ELEMENT>> FactoryBasedNavigableIterableAssert<?, ACTUAL, ELEMENT, ELEMENT_ASSERT> assertThat(Iterable<? extends ELEMENT> arg0, AssertFactory<ELEMENT, ELEMENT_ASSERT> arg1) { return Assertions.assertThat(arg0, arg1); }
/** * Delegate call to public static <ACTUAL,ELEMENT,ELEMENT_ASSERT> org.assertj.core.api.FactoryBasedNavigableListAssert<?, ACTUAL, ELEMENT, ELEMENT_ASSERT> org.assertj.core.api.Assertions.assertThat(java.util.List<? extends ELEMENT>,org.assertj.core.api.AssertFactory<ELEMENT, ELEMENT_ASSERT>) * {@link org.assertj.core.api.Assertions#assertThat(java.util.List,org.assertj.core.api.AssertFactory)} */ default <ACTUAL extends List<? extends ELEMENT>,ELEMENT,ELEMENT_ASSERT extends AbstractAssert<ELEMENT_ASSERT, ELEMENT>> FactoryBasedNavigableListAssert<?, ACTUAL, ELEMENT, ELEMENT_ASSERT> assertThat(List<? extends ELEMENT> arg0, AssertFactory<ELEMENT, ELEMENT_ASSERT> arg1) { return Assertions.assertThat(arg0, arg1); }