當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。