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

项目:graphql-java-reactive    文件:ChangesTestSubscriber.java   
public ChangesTestSubscriber assertChanges(Consumer<ListAssert<Tuple>> consumer) {
    consumer.accept(
            assertThat(values())
                    .extracting(
                            it -> DurationFormatUtils.formatDuration(it.time(MILLISECONDS), "ss:SSS", true),
                            it -> getPathString(it.value()),
                            it -> it.value().getData()
                    ));
    return this;
}
项目:flash-messages    文件:StoreAdditionSpecs.java   
@Test
public void it_should_be_possible_to_get_it_only_in_that_level() {
    this.sut.add(MessageFixturer.EXAMPLE_LEVEL, MessageFixturer.EXAMPLE_TEXT);

    for (final Level level : Level.values()) {
        final ListAssert<Message> assertion = assertThat(this.sut.getMessages(level));

        if (level == MessageFixturer.EXAMPLE_LEVEL) {
            assertion.containsExactly(MESSAGE_DEFAULT_EXAMPLE);
        } else {
            assertion.doesNotContain(MESSAGE_DEFAULT_EXAMPLE);
        }
    }
}
项目:smart-testing    文件:DependencyAssertion.java   
public ListAssert<Exclusion> exclusions() {
    isNotNull();
    return Assertions.assertThat(actual.getExclusions());
}
项目:test-as-you-think    文件:TestAsYouThink.java   
public static <$Element> ListAssert<$Element> resultOf(CheckedListSupplier<$Element> whenStep) {
    return assertThat(result(whenStep));
}
项目:arquillian-reporter    文件:ReportAssert.java   
public ListAssert<Entry> entries() {
    return new ListAssert<>(actual.getEntries());
}
项目:testcontainers-java    文件:JarFileShadingTest.java   
private ListAssert<String> assertThatFileList(Path path) throws IOException {
    return (ListAssert) assertThat(Files.list(path))
            .extracting(Path::getFileName)
            .extracting(Object::toString);
}
项目:termsuite-core    文件:CasAssert.java   
public ListAssert<Annotation> getAnnotations(Class<? extends Annotation> annotationClass) {
    ListAssert<Annotation> assertThat = assertThat(getAnnotationList(annotationClass));
    return assertThat;
}
项目:assertj-core    文件:ListAssert_isSortedAccordingToComparator_Test.java   
@Override
protected ListAssert<String> invoke_api_method() {
  return assertions.isSortedAccordingTo(comparator);
}
项目:assertj-core    文件:ListAssert_usingComparator_Test.java   
@Override
 protected ListAssert<String> invoke_api_method() {
return assertions.usingComparator(comparator);
 }
项目:assertj-core    文件:ListAssert_usingDefaultComparator_Test.java   
@Override
protected ListAssert<String> invoke_api_method() {
  return assertions.usingDefaultComparator();
}
项目:assertj-core    文件:ListAssert_has_at_Index_Test.java   
@Override
protected ListAssert<String> invoke_api_method() {
  return assertions.has(condition, index);
}
项目:assertj-core    文件:ListAssert_contains_at_Index_Test.java   
@Override
protected ListAssert<String> invoke_api_method() {
  return assertions.contains("Yoda", index);
}
项目:assertj-core    文件:ListAssert_usingElementComparatorIgnoringFields_Test.java   
@Override
 protected ListAssert<String> invoke_api_method() {
return assertions.usingElementComparatorIgnoringFields("field");
 }
项目:assertj-core    文件:ListAssert_doesNotContain_at_Index_Test.java   
@Override
protected ListAssert<String> invoke_api_method() {
  return assertions.doesNotContain("Yoda", index);
}
项目:assertj-core    文件:ListAssert_usingElementComparatorOnFields_Test.java   
@Override
 protected ListAssert<String> invoke_api_method() {
return assertions.usingElementComparatorOnFields("field");
 }
项目:assertj-core    文件:ListAssert_is_at_Index_Test.java   
@Override
protected ListAssert<String> invoke_api_method() {
  return assertions.is(condition, index);
}
项目:assertj-core    文件:ListAssert_usingFieldByFieldElementComparator_Test.java   
@Override
 protected ListAssert<String> invoke_api_method() {
return assertions.usingFieldByFieldElementComparator();
 }
项目:assertj-core    文件:ListAssert_isSorted_Test.java   
@Override
protected ListAssert<String> invoke_api_method() {
  return assertions.isSorted();
}
项目:assertj-core    文件:TypeCanonizerTest.java   
public static <ELEMENT> ListAssert<ELEMENT> listAssert(List<? extends ELEMENT> actual) {
  return null;
}
项目:assertj-core    文件:TypeCanonizerTest.java   
public static <T> ListAssert<T> listAssert2(List<? extends T> actual) {
  return null;
}
项目:extended-mockito    文件:AssertJ.java   
/**
 * Delegate call to public static <ELEMENT> org.assertj.core.api.ListAssert<ELEMENT> org.assertj.core.api.Assertions.assertThat(java.util.List<? extends ELEMENT>)
 * {@link org.assertj.core.api.Assertions#assertThat(java.util.List)}
 */
default <ELEMENT> ListAssert<ELEMENT> assertThat(List<? extends ELEMENT> actual) {
    return Assertions.assertThat(actual);
}
项目:tdd-mixins-core    文件:AssertJ.java   
/**
 * Delegate call to public static <ELEMENT> org.assertj.core.api.ListAssert<ELEMENT> org.assertj.core.api.Assertions.assertThat(java.util.List<? extends ELEMENT>)
 * {@link org.assertj.core.api.Assertions#assertThat(java.util.List)}
 */
default <ELEMENT> ListAssert<ELEMENT> assertThat(List<? extends ELEMENT> actual) {
    return Assertions.assertThat(actual);
}