本文整理汇总了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);
}
示例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);
}
示例4: commandParts
import org.assertj.core.api.ObjectAssert; //导入依赖的package包/类
public AbstractListAssert<?, ?, Object, ObjectAssert<Object>> commandParts() {
return asCommand().commandParts();
}
示例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"));
}
示例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();
}
示例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);
}
示例11: invoke_api_method
import org.assertj.core.api.ObjectAssert; //导入依赖的package包/类
@Override
protected ObjectAssert<Jedi> invoke_api_method() {
return assertions.hasSameHashCodeAs(OTHER_JEDI);
}
示例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);
}
示例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);
}