Java 类org.assertj.core.api.ObjectAssert 实例源码

项目:spring-boot-data-source-decorator    文件:DataSourceDecoratorAutoConfigurationTests.java   
private AbstractListAssert<?, List<?>, Object, ObjectAssert<Object>> assertThatDataSourceDecoratingChain(DataSource dataSource) {
    return assertThat(((DecoratedDataSource) dataSource).getDecoratingChain()).extracting("dataSource").extracting("class");
}
项目:fluent-bdd    文件:WithFluentAssertJ.java   
/**
 * 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);
}
项目:fluent-bdd    文件:WithFluentAssertJ.java   
/**
 * 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);
}
项目:fluent-bdd    文件:WithFluentAssertJ.java   
/**
 * Delegate call to {@link org.assertj.core.api.Assertions#assertThat(Iterator)}
 */
default <T> AbstractIterableAssert<?, Iterable<? extends T>, T, ObjectAssert<T>> then(Iterator<? extends T> actual) {
    fluentBdd().verification.recordThen(this);
    return DELEGATE.assertThat(actual);
}
项目:fluent-bdd    文件:WithFluentAssertJ.java   
/**
 * Delegate call to {@link org.assertj.core.api.Assertions#assertThat(Iterator)}
 */
default <T> AbstractIterableAssert<?, Iterable<? extends T>, T, ObjectAssert<T>> and(Iterator<? extends T> actual) {
    fluentBdd().verification.recordThen(this);
    return DELEGATE.assertThat(actual);
}
项目:fluent-bdd    文件:WithFluentAssertJ.java   
/**
 * Delegate call to {@link org.assertj.core.api.Assertions#assertThat(List)}
 */
default <T> AbstractListAssert<?, List<? extends T>, T, ObjectAssert<T>> then(List<? extends T> actual) {
    fluentBdd().verification.recordThen(this);
    return DELEGATE.assertThat(actual);
}
项目:fluent-bdd    文件:WithFluentAssertJ.java   
/**
 * Delegate call to {@link org.assertj.core.api.Assertions#assertThat(List)}
 */
default <T> AbstractListAssert<?, List<? extends T>, T, ObjectAssert<T>> and(List<? extends T> actual) {
    fluentBdd().verification.recordThen(this);
    return DELEGATE.assertThat(actual);
}
项目:fluent-bdd    文件:WithFluentAssertJ.java   
/**
 * Delegate call to {@link org.assertj.core.api.Assertions#assertThat(List)}
 */
default <T> AbstractListAssert<?, ? extends List<? extends T>, T, ObjectAssert<T>> then(Stream<? extends T> actual) {
    fluentBdd().verification.recordThen(this);
    return DELEGATE.assertThat(actual);
}
项目:fluent-bdd    文件:WithFluentAssertJ.java   
/**
 * Delegate call to {@link org.assertj.core.api.Assertions#assertThat(List)}
 */
default <T> AbstractListAssert<?, ? extends List<? extends T>, T, ObjectAssert<T>> and(Stream<? extends T> actual) {
    fluentBdd().verification.recordThen(this);
    return DELEGATE.assertThat(actual);
}
项目:MPL    文件:ChainLinkAssert.java   
public AbstractListAssert<?, ?, Object, ObjectAssert<Object>> commandParts() {
  return asCommand().commandParts();
}
项目:MPL    文件:CommandAssert.java   
@Override
public AbstractListAssert<?, List<? extends Object>, Object, ObjectAssert<Object>> commandParts() {
  isNotNull();
  return assertThat(actual.getCommandParts()).as(description("commandParts"));
}
项目:assertj-core    文件:ObjectAssert_hasFieldOrPropertyWithValue_Test.java   
@Override
protected ObjectAssert<Jedi> invoke_api_method() {
  return assertions.hasFieldOrPropertyWithValue(FIELD_NAME, FIELD_VALUE);
}
项目:assertj-core    文件:ObjectAssert_isEqualToIgnoringNullFields_Test.java   
@Override
protected ObjectAssert<Jedi> invoke_api_method() {
  return assertions.isEqualToIgnoringNullFields(other);
}
项目:assertj-core    文件:ObjectAssert_usingDefaultComparator_Test.java   
@Override
protected ObjectAssert<Jedi> invoke_api_method() {
  return assertions.usingDefaultComparator();
}
项目:assertj-core    文件:ObjectAssert_hasNoNullFieldsOrProperties_Test.java   
@Override
protected ObjectAssert<Jedi> invoke_api_method() {
  return assertions.hasNoNullFieldsOrPropertiesExcept(FIELD_NAME);
}
项目:assertj-core    文件:ObjectAssert_hasFieldOrProperty_Test.java   
@Override
protected ObjectAssert<Jedi> invoke_api_method() {
  return assertions.hasFieldOrProperty(FIELD_NAME);
}
项目:assertj-core    文件:ObjectAssert_hasSameHashCodeAs_Test.java   
@Override
protected ObjectAssert<Jedi> invoke_api_method() {
  return assertions.hasSameHashCodeAs(OTHER_JEDI);
}
项目:assertj-core    文件:ObjectAssert_isEqualsToComparingFields_Test.java   
@Override
protected ObjectAssert<Jedi> invoke_api_method() {
  return assertions.isEqualToComparingFieldByField(other);
}
项目:assertj-core    文件:ObjectAssert_isEqualToComparingOnlyGivenFields_Test.java   
@Override
protected ObjectAssert<Jedi> invoke_api_method() {
  return assertions.isEqualToComparingOnlyGivenFields(other, "name");
}
项目:assertj-core    文件:ObjectAssert_returns_Test.java   
@Override
protected ObjectAssert<Jedi> invoke_api_method() {
  return assertions.returns("Yoda", Jedi::getName);
}
项目:assertj-core    文件:ObjectAssert_usingComparator_Test.java   
@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);
}
项目:assertj-core    文件:ObjectAssert_isEqualToIgnoringGivenFields_Test.java   
@Override
protected ObjectAssert<Jedi> invoke_api_method() {
  return assertions.isEqualToIgnoringGivenFields(other, "lightSaberColor");
}
项目:assertj-core    文件:TypeCanonizerTest.java   
public static <T> AbstractListAssert<?, List<? extends T>, T, ObjectAssert<T>> complex1(List<? extends T> in) {
  return null;
}
项目:assertj-core    文件:TypeCanonizerTest.java   
public static <T> AbstractListAssert<?, List<? extends T>, T, ObjectAssert<T>> complex2(List<? extends T> in) {
  return null;
}
项目:assertj-guava    文件:MultisetAssert.java   
@Override
protected ObjectAssert<T> toAssert(T value, String description) {
  return null;
}
项目:extended-mockito    文件:AssertJ.java   
/**
 * Delegate call to public static org.assertj.core.api.AbstractListAssert<?, java.util.List<? extends java.lang.Double>, java.lang.Double, org.assertj.core.api.ObjectAssert<java.lang.Double>> org.assertj.core.api.Assertions.assertThat(java.util.stream.DoubleStream)
 * {@link org.assertj.core.api.Assertions#assertThat(java.util.stream.DoubleStream)}
 */
default AbstractListAssert<?, List<? extends Double>, Double, ObjectAssert<Double>> assertThat(DoubleStream actual) {
    return Assertions.assertThat(actual);
}
项目:extended-mockito    文件:AssertJ.java   
/**
 * Delegate call to public static org.assertj.core.api.AbstractListAssert<?, java.util.List<? extends java.lang.Integer>, java.lang.Integer, org.assertj.core.api.ObjectAssert<java.lang.Integer>> org.assertj.core.api.Assertions.assertThat(java.util.stream.IntStream)
 * {@link org.assertj.core.api.Assertions#assertThat(java.util.stream.IntStream)}
 */
default AbstractListAssert<?, List<? extends Integer>, Integer, ObjectAssert<Integer>> assertThat(IntStream actual) {
    return Assertions.assertThat(actual);
}
项目:extended-mockito    文件:AssertJ.java   
/**
 * Delegate call to public static org.assertj.core.api.AbstractListAssert<?, java.util.List<? extends java.lang.Long>, java.lang.Long, org.assertj.core.api.ObjectAssert<java.lang.Long>> org.assertj.core.api.Assertions.assertThat(java.util.stream.LongStream)
 * {@link org.assertj.core.api.Assertions#assertThat(java.util.stream.LongStream)}
 */
default AbstractListAssert<?, List<? extends Long>, Long, ObjectAssert<Long>> assertThat(LongStream actual) {
    return Assertions.assertThat(actual);
}
项目:extended-mockito    文件:AssertJ.java   
/**
 * Delegate call to public static <ELEMENT> org.assertj.core.api.AbstractListAssert<?, java.util.List<? extends ELEMENT>, ELEMENT, org.assertj.core.api.ObjectAssert<ELEMENT>> org.assertj.core.api.Assertions.assertThat(java.util.stream.Stream<? extends ELEMENT>)
 * {@link org.assertj.core.api.Assertions#assertThat(java.util.stream.Stream)}
 */
default <ELEMENT> AbstractListAssert<?, List<? extends ELEMENT>, ELEMENT, ObjectAssert<ELEMENT>> assertThat(Stream<? extends ELEMENT> actual) {
    return Assertions.assertThat(actual);
}
项目:tdd-mixins-core    文件:AssertJ.java   
/**
 * Delegate call to public static org.assertj.core.api.AbstractListAssert<?, java.util.List<? extends java.lang.Double>, java.lang.Double, org.assertj.core.api.ObjectAssert<java.lang.Double>> org.assertj.core.api.Assertions.assertThat(java.util.stream.DoubleStream)
 * {@link org.assertj.core.api.Assertions#assertThat(java.util.stream.DoubleStream)}
 */
default AbstractListAssert<?, List<? extends Double>, Double, ObjectAssert<Double>> assertThat(DoubleStream actual) {
    return Assertions.assertThat(actual);
}
项目:tdd-mixins-core    文件:AssertJ.java   
/**
 * Delegate call to public static org.assertj.core.api.AbstractListAssert<?, java.util.List<? extends java.lang.Integer>, java.lang.Integer, org.assertj.core.api.ObjectAssert<java.lang.Integer>> org.assertj.core.api.Assertions.assertThat(java.util.stream.IntStream)
 * {@link org.assertj.core.api.Assertions#assertThat(java.util.stream.IntStream)}
 */
default AbstractListAssert<?, List<? extends Integer>, Integer, ObjectAssert<Integer>> assertThat(IntStream actual) {
    return Assertions.assertThat(actual);
}
项目:tdd-mixins-core    文件:AssertJ.java   
/**
 * Delegate call to public static org.assertj.core.api.AbstractListAssert<?, java.util.List<? extends java.lang.Long>, java.lang.Long, org.assertj.core.api.ObjectAssert<java.lang.Long>> org.assertj.core.api.Assertions.assertThat(java.util.stream.LongStream)
 * {@link org.assertj.core.api.Assertions#assertThat(java.util.stream.LongStream)}
 */
default AbstractListAssert<?, List<? extends Long>, Long, ObjectAssert<Long>> assertThat(LongStream actual) {
    return Assertions.assertThat(actual);
}
项目:tdd-mixins-core    文件:AssertJ.java   
/**
 * Delegate call to public static <ELEMENT> org.assertj.core.api.AbstractListAssert<?, java.util.List<? extends ELEMENT>, ELEMENT, org.assertj.core.api.ObjectAssert<ELEMENT>> org.assertj.core.api.Assertions.assertThat(java.util.stream.Stream<? extends ELEMENT>)
 * {@link org.assertj.core.api.Assertions#assertThat(java.util.stream.Stream)}
 */
default <ELEMENT> AbstractListAssert<?, List<? extends ELEMENT>, ELEMENT, ObjectAssert<ELEMENT>> assertThat(Stream<? extends ELEMENT> actual) {
    return Assertions.assertThat(actual);
}