本文整理了Java中org.assertj.core.api.AbstractByteArrayAssert.as()
方法的一些代码示例,展示了AbstractByteArrayAssert.as()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AbstractByteArrayAssert.as()
方法的具体详情如下:
包路径:org.assertj.core.api.AbstractByteArrayAssert
类名称: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;
内容来源于网络,如有侵权,请联系作者删除!