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


Java ObjectAssert类代码示例

本文整理汇总了Java中org.assertj.core.api.ObjectAssert的典型用法代码示例。如果您正苦于以下问题:Java ObjectAssert类的具体用法?Java ObjectAssert怎么用?Java ObjectAssert使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


ObjectAssert类属于org.assertj.core.api包,在下文中一共展示了ObjectAssert类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: assertThatDataSourceDecoratingChain

import org.assertj.core.api.ObjectAssert; //导入依赖的package包/类
private AbstractListAssert<?, List<?>, Object, ObjectAssert<Object>> assertThatDataSourceDecoratingChain(DataSource dataSource) {
    return assertThat(((DecoratedDataSource) dataSource).getDecoratingChain()).extracting("dataSource").extracting("class");
}
 
开发者ID:gavlyukovskiy,项目名称:spring-boot-data-source-decorator,代码行数:4,代码来源:DataSourceDecoratorAutoConfigurationTests.java

示例2: then

import org.assertj.core.api.ObjectAssert; //导入依赖的package包/类
/**
 * Delegate call to {@link org.assertj.core.api.Assertions#assertThat(Iterable)}
 */
default <T> AbstractIterableAssert<?, Iterable<? extends T>, T, ObjectAssert<T>> then(Iterable<? extends T> actual) {
	fluentBdd().verification.recordThen(this);
	return DELEGATE.assertThat(actual);
}
 
开发者ID:theangrydev,项目名称:fluent-bdd,代码行数:8,代码来源:WithFluentAssertJ.java

示例3: and

import org.assertj.core.api.ObjectAssert; //导入依赖的package包/类
/**
 * Delegate call to {@link org.assertj.core.api.Assertions#assertThat(Iterable)}
 */
default <T> AbstractIterableAssert<?, Iterable<? extends T>, T, ObjectAssert<T>> and(Iterable<? extends T> actual) {
	fluentBdd().verification.recordThen(this);
	return DELEGATE.assertThat(actual);
}
 
开发者ID:theangrydev,项目名称:fluent-bdd,代码行数:8,代码来源:WithFluentAssertJ.java

示例4: commandParts

import org.assertj.core.api.ObjectAssert; //导入依赖的package包/类
public AbstractListAssert<?, ?, Object, ObjectAssert<Object>> commandParts() {
  return asCommand().commandParts();
}
 
开发者ID:Adrodoc55,项目名称:MPL,代码行数:4,代码来源:ChainLinkAssert.java

示例5: commandParts

import org.assertj.core.api.ObjectAssert; //导入依赖的package包/类
@Override
public AbstractListAssert<?, List<? extends Object>, Object, ObjectAssert<Object>> commandParts() {
  isNotNull();
  return assertThat(actual.getCommandParts()).as(description("commandParts"));
}
 
开发者ID:Adrodoc55,项目名称:MPL,代码行数:6,代码来源:CommandAssert.java

示例6: invoke_api_method

import org.assertj.core.api.ObjectAssert; //导入依赖的package包/类
@Override
protected ObjectAssert<Jedi> invoke_api_method() {
  return assertions.hasFieldOrPropertyWithValue(FIELD_NAME, FIELD_VALUE);
}
 
开发者ID:joel-costigliola,项目名称:assertj-core,代码行数:5,代码来源:ObjectAssert_hasFieldOrPropertyWithValue_Test.java

示例7: invoke_api_method

import org.assertj.core.api.ObjectAssert; //导入依赖的package包/类
@Override
protected ObjectAssert<Jedi> invoke_api_method() {
  return assertions.isEqualToIgnoringNullFields(other);
}
 
开发者ID:joel-costigliola,项目名称:assertj-core,代码行数:5,代码来源:ObjectAssert_isEqualToIgnoringNullFields_Test.java

示例8: invoke_api_method

import org.assertj.core.api.ObjectAssert; //导入依赖的package包/类
@Override
protected ObjectAssert<Jedi> invoke_api_method() {
  return assertions.usingDefaultComparator();
}
 
开发者ID:joel-costigliola,项目名称:assertj-core,代码行数:5,代码来源:ObjectAssert_usingDefaultComparator_Test.java

示例9: invoke_api_method

import org.assertj.core.api.ObjectAssert; //导入依赖的package包/类
@Override
protected ObjectAssert<Jedi> invoke_api_method() {
  return assertions.hasNoNullFieldsOrPropertiesExcept(FIELD_NAME);
}
 
开发者ID:joel-costigliola,项目名称:assertj-core,代码行数:5,代码来源:ObjectAssert_hasNoNullFieldsOrProperties_Test.java

示例10: invoke_api_method

import org.assertj.core.api.ObjectAssert; //导入依赖的package包/类
@Override
protected ObjectAssert<Jedi> invoke_api_method() {
  return assertions.hasFieldOrProperty(FIELD_NAME);
}
 
开发者ID:joel-costigliola,项目名称:assertj-core,代码行数:5,代码来源:ObjectAssert_hasFieldOrProperty_Test.java

示例11: invoke_api_method

import org.assertj.core.api.ObjectAssert; //导入依赖的package包/类
@Override
protected ObjectAssert<Jedi> invoke_api_method() {
  return assertions.hasSameHashCodeAs(OTHER_JEDI);
}
 
开发者ID:joel-costigliola,项目名称:assertj-core,代码行数:5,代码来源:ObjectAssert_hasSameHashCodeAs_Test.java

示例12: invoke_api_method

import org.assertj.core.api.ObjectAssert; //导入依赖的package包/类
@Override
protected ObjectAssert<Jedi> invoke_api_method() {
  return assertions.isEqualToComparingFieldByField(other);
}
 
开发者ID:joel-costigliola,项目名称:assertj-core,代码行数:5,代码来源:ObjectAssert_isEqualsToComparingFields_Test.java

示例13: invoke_api_method

import org.assertj.core.api.ObjectAssert; //导入依赖的package包/类
@Override
protected ObjectAssert<Jedi> invoke_api_method() {
  return assertions.isEqualToComparingOnlyGivenFields(other, "name");
}
 
开发者ID:joel-costigliola,项目名称:assertj-core,代码行数:5,代码来源:ObjectAssert_isEqualToComparingOnlyGivenFields_Test.java

示例14: invoke_api_method

import org.assertj.core.api.ObjectAssert; //导入依赖的package包/类
@Override
protected ObjectAssert<Jedi> invoke_api_method() {
  return assertions.returns("Yoda", Jedi::getName);
}
 
开发者ID:joel-costigliola,项目名称:assertj-core,代码行数:5,代码来源:ObjectAssert_returns_Test.java

示例15: invoke_api_method

import org.assertj.core.api.ObjectAssert; //导入依赖的package包/类
@Override
protected ObjectAssert<Jedi> invoke_api_method() {
  // in that, we don't care of the comparator, the point to check is that we switch correctly of comparator
  return assertions.usingComparator(comparator);
}
 
开发者ID:joel-costigliola,项目名称:assertj-core,代码行数:6,代码来源:ObjectAssert_usingComparator_Test.java


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