当前位置: 首页>>代码示例>>Java>>正文


Java FactoryBasedNavigableIterableAssert类代码示例

本文整理汇总了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);
}
 
开发者ID:joel-costigliola,项目名称:assertj-core,代码行数:11,代码来源:FactoryBasedNavigableIterableAssert_Test.java

示例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);
}
 
开发者ID:aro-tech,项目名称:extended-mockito,代码行数:8,代码来源:AssertJ.java


注:本文中的org.assertj.core.api.FactoryBasedNavigableIterableAssert类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。