org.assertj.core.api.AbstractByteArrayAssert.as()方法的使用及代码示例

x33g5p2x  于2022-01-15 转载在 其他  
字(0.9k)|赞(0)|评价(0)|浏览(79)

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

AbstractByteArrayAssert.as介绍

暂无

代码示例

代码示例来源:origin: palantir/atlasdb

private long readValueFromDefaultCell(TableReference tableRef, long ts) {
  byte[] cellContents = Iterables.getOnlyElement(readFromDefaultCell(tableRef, ts).values()).getContents();
  assertThat(cellContents).as("Reading value from table %s at timestamp %s", tableRef, ts).isNotEmpty();
  return PtBytes.toLong(cellContents);
}

代码示例来源:origin: spring-projects/spring-ldap

byte[] bytes = LdapEncoder.parseBase64Binary(value);
assertThat(attribute.get() instanceof byte[]).as("Value is not a byte[].").isTrue();
assertThat((byte[]) attribute.get()).as("Values do not match: ").isEqualTo(bytes);
break;

相关文章