本文整理匯總了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);
}