本文整理汇总了Java中org.assertj.core.api.FactoryBasedNavigableIterableAssert类的典型用法代码示例。如果您正苦于以下问题:Java FactoryBasedNavigableIterableAssert类的具体用法?Java FactoryBasedNavigableIterableAssert怎么用?Java FactoryBasedNavigableIterableAssert使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
FactoryBasedNavigableIterableAssert类属于org.assertj.core.api包,在下文中一共展示了FactoryBasedNavigableIterableAssert类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: buildNavigableAssert
import org.assertj.core.api.FactoryBasedNavigableIterableAssert; //导入依赖的package包/类
@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);
}
示例2: assertThat
import org.assertj.core.api.FactoryBasedNavigableIterableAssert; //导入依赖的package包/类
/**
* 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);
}