org.fest.assertions.ListAssert.isNullOrEmpty()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(96)

本文整理了Java中org.fest.assertions.ListAssert.isNullOrEmpty()方法的一些代码示例,展示了ListAssert.isNullOrEmpty()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ListAssert.isNullOrEmpty()方法的具体详情如下:
包路径:org.fest.assertions.ListAssert
类名称:ListAssert
方法名:isNullOrEmpty

ListAssert.isNullOrEmpty介绍

暂无

代码示例

代码示例来源:origin: debezium/debezium

assertThat(actualRecords.recordsForTopic(topicName("s2.a"))).isNullOrEmpty();
assertThat(actualRecords.recordsForTopic(topicName("s1.b"))).isNullOrEmpty();
List<SourceRecord> recordsForS1a = actualRecords.recordsForTopic(topicName("s1.a"));
assertThat(recordsForS1a.size()).isEqualTo(3);

代码示例来源:origin: debezium/debezium

final List<SourceRecord> deleteTableA = deleteRecords.recordsForTopic("server1.dbo.tablea");
final List<SourceRecord> deleteTableB = deleteRecords.recordsForTopic("server1.dbo.tableb");
Assertions.assertThat(deleteTableA).isNullOrEmpty();
Assertions.assertThat(deleteTableB).hasSize(2 * RECORDS_PER_TABLE);

代码示例来源:origin: debezium/debezium

Assertions.assertThat(records.recordsForTopic("server1.dbo.tableb")).isNullOrEmpty();

代码示例来源:origin: io.debezium/debezium-connector-postgres

assertThat(actualRecords.recordsForTopic(topicName("s2.a"))).isNullOrEmpty();
assertThat(actualRecords.recordsForTopic(topicName("s1.b"))).isNullOrEmpty();
List<SourceRecord> recordsForS1a = actualRecords.recordsForTopic(topicName("s1.a"));
assertThat(recordsForS1a.size()).isEqualTo(3);

相关文章