本文整理汇总了Java中org.assertj.core.api.ListAssert类的典型用法代码示例。如果您正苦于以下问题:Java ListAssert类的具体用法?Java ListAssert怎么用?Java ListAssert使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ListAssert类属于org.assertj.core.api包,在下文中一共展示了ListAssert类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: assertChanges
import org.assertj.core.api.ListAssert; //导入依赖的package包/类
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;
}
开发者ID:bsideup,项目名称:graphql-java-reactive,代码行数:11,代码来源:ChangesTestSubscriber.java
示例2: it_should_be_possible_to_get_it_only_in_that_level
import org.assertj.core.api.ListAssert; //导入依赖的package包/类
@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);
}
}
}
开发者ID:jeslopalo,项目名称:flash-messages,代码行数:15,代码来源:StoreAdditionSpecs.java
示例3: exclusions
import org.assertj.core.api.ListAssert; //导入依赖的package包/类
public ListAssert<Exclusion> exclusions() {
isNotNull();
return Assertions.assertThat(actual.getExclusions());
}
开发者ID:arquillian,项目名称:smart-testing,代码行数:5,代码来源:DependencyAssertion.java
示例4: resultOf
import org.assertj.core.api.ListAssert; //导入依赖的package包/类
public static <$Element> ListAssert<$Element> resultOf(CheckedListSupplier<$Element> whenStep) {
return assertThat(result(whenStep));
}
开发者ID:xapn,项目名称:test-as-you-think,代码行数:4,代码来源:TestAsYouThink.java
示例5: entries
import org.assertj.core.api.ListAssert; //导入依赖的package包/类
public ListAssert<Entry> entries() {
return new ListAssert<>(actual.getEntries());
}
开发者ID:arquillian,项目名称:arquillian-reporter,代码行数:4,代码来源:ReportAssert.java
示例6: assertThatFileList
import org.assertj.core.api.ListAssert; //导入依赖的package包/类
private ListAssert<String> assertThatFileList(Path path) throws IOException {
return (ListAssert) assertThat(Files.list(path))
.extracting(Path::getFileName)
.extracting(Object::toString);
}
开发者ID:testcontainers,项目名称:testcontainers-java,代码行数:6,代码来源:JarFileShadingTest.java
示例7: getAnnotations
import org.assertj.core.api.ListAssert; //导入依赖的package包/类
public ListAssert<Annotation> getAnnotations(Class<? extends Annotation> annotationClass) {
ListAssert<Annotation> assertThat = assertThat(getAnnotationList(annotationClass));
return assertThat;
}
开发者ID:termsuite,项目名称:termsuite-core,代码行数:5,代码来源:CasAssert.java
示例8: invoke_api_method
import org.assertj.core.api.ListAssert; //导入依赖的package包/类
@Override
protected ListAssert<String> invoke_api_method() {
return assertions.isSortedAccordingTo(comparator);
}
开发者ID:joel-costigliola,项目名称:assertj-core,代码行数:5,代码来源:ListAssert_isSortedAccordingToComparator_Test.java
示例9: invoke_api_method
import org.assertj.core.api.ListAssert; //导入依赖的package包/类
@Override
protected ListAssert<String> invoke_api_method() {
return assertions.usingComparator(comparator);
}
开发者ID:joel-costigliola,项目名称:assertj-core,代码行数:5,代码来源:ListAssert_usingComparator_Test.java
示例10: invoke_api_method
import org.assertj.core.api.ListAssert; //导入依赖的package包/类
@Override
protected ListAssert<String> invoke_api_method() {
return assertions.usingDefaultComparator();
}
开发者ID:joel-costigliola,项目名称:assertj-core,代码行数:5,代码来源:ListAssert_usingDefaultComparator_Test.java
示例11: invoke_api_method
import org.assertj.core.api.ListAssert; //导入依赖的package包/类
@Override
protected ListAssert<String> invoke_api_method() {
return assertions.has(condition, index);
}
开发者ID:joel-costigliola,项目名称:assertj-core,代码行数:5,代码来源:ListAssert_has_at_Index_Test.java
示例12: invoke_api_method
import org.assertj.core.api.ListAssert; //导入依赖的package包/类
@Override
protected ListAssert<String> invoke_api_method() {
return assertions.contains("Yoda", index);
}
开发者ID:joel-costigliola,项目名称:assertj-core,代码行数:5,代码来源:ListAssert_contains_at_Index_Test.java
示例13: invoke_api_method
import org.assertj.core.api.ListAssert; //导入依赖的package包/类
@Override
protected ListAssert<String> invoke_api_method() {
return assertions.usingElementComparatorIgnoringFields("field");
}
开发者ID:joel-costigliola,项目名称:assertj-core,代码行数:5,代码来源:ListAssert_usingElementComparatorIgnoringFields_Test.java
示例14: invoke_api_method
import org.assertj.core.api.ListAssert; //导入依赖的package包/类
@Override
protected ListAssert<String> invoke_api_method() {
return assertions.doesNotContain("Yoda", index);
}
开发者ID:joel-costigliola,项目名称:assertj-core,代码行数:5,代码来源:ListAssert_doesNotContain_at_Index_Test.java
示例15: invoke_api_method
import org.assertj.core.api.ListAssert; //导入依赖的package包/类
@Override
protected ListAssert<String> invoke_api_method() {
return assertions.usingElementComparatorOnFields("field");
}
开发者ID:joel-costigliola,项目名称:assertj-core,代码行数:5,代码来源:ListAssert_usingElementComparatorOnFields_Test.java
示例16: invoke_api_method
import org.assertj.core.api.ListAssert; //导入依赖的package包/类
@Override
protected ListAssert<String> invoke_api_method() {
return assertions.is(condition, index);
}
开发者ID:joel-costigliola,项目名称:assertj-core,代码行数:5,代码来源:ListAssert_is_at_Index_Test.java
示例17: invoke_api_method
import org.assertj.core.api.ListAssert; //导入依赖的package包/类
@Override
protected ListAssert<String> invoke_api_method() {
return assertions.usingFieldByFieldElementComparator();
}
开发者ID:joel-costigliola,项目名称:assertj-core,代码行数:5,代码来源:ListAssert_usingFieldByFieldElementComparator_Test.java
示例18: invoke_api_method
import org.assertj.core.api.ListAssert; //导入依赖的package包/类
@Override
protected ListAssert<String> invoke_api_method() {
return assertions.isSorted();
}
开发者ID:joel-costigliola,项目名称:assertj-core,代码行数:5,代码来源:ListAssert_isSorted_Test.java
示例19: listAssert
import org.assertj.core.api.ListAssert; //导入依赖的package包/类
public static <ELEMENT> ListAssert<ELEMENT> listAssert(List<? extends ELEMENT> actual) {
return null;
}
开发者ID:joel-costigliola,项目名称:assertj-core,代码行数:4,代码来源:TypeCanonizerTest.java
示例20: listAssert2
import org.assertj.core.api.ListAssert; //导入依赖的package包/类
public static <T> ListAssert<T> listAssert2(List<? extends T> actual) {
return null;
}
开发者ID:joel-costigliola,项目名称:assertj-core,代码行数:4,代码来源:TypeCanonizerTest.java
注:本文中的org.assertj.core.api.ListAssert类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论