本文整理了Java中org.assertj.core.api.AbstractObjectArrayAssert.isNull()
方法的一些代码示例,展示了AbstractObjectArrayAssert.isNull()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AbstractObjectArrayAssert.isNull()
方法的具体详情如下:
包路径:org.assertj.core.api.AbstractObjectArrayAssert
类名称:AbstractObjectArrayAssert
方法名:isNull
暂无
代码示例来源:origin: facebook/litho
@Test
public void testTextWithoutClickableSpans() {
TextDrawable drawable = getMountedDrawableForText("Some text.");
assertThat(drawable.getClickableSpans()).isNull();
}
代码示例来源:origin: com.datastax.cassandra/cassandra-driver-core
@Test(groups = "unit")
public void should_not_serialize_raw_query_values() {
RegularStatement select = select().from("test").where(gt("i", raw("1")));
assertThat(select.getQueryString()).doesNotContain("?");
assertThat(select.getValues(ProtocolVersion.NEWEST_SUPPORTED, CodecRegistry.DEFAULT_INSTANCE))
.isNull();
}
代码示例来源:origin: spring-projects/spring-ldap
@Test
public void testGetStringAttributesNotExists() throws Exception {
String s[] = tested.getStringAttributes("abc");
assertThat(s).isNull();
}
代码示例来源:origin: org.uberfire/uberfire-nio2-jgit
@Test
public void testUsingProvidedPath() {
final URI newRepo = URI.create("git://repo-name");
JGitFileSystemProxy fileSystem = (JGitFileSystemProxy) provider.newFileSystem(newRepo,
EMPTY_ENV);
//no infra created due to lazy loading nature of our FS
String[] names = tempDir.list();
assertThat(names).isEmpty();
String[] repos = new File(tempDir,
dirPathName).list();
assertThat(repos).isNull();
//FS created
fileSystem.getRealJGitFileSystem();
names = tempDir.list();
assertThat(names).contains(dirPathName);
repos = new File(tempDir,
dirPathName).list();
assertThat(repos).contains("repo-name.git");
}
}
代码示例来源:origin: kiegroup/appformer
@Test
public void testUsingProvidedPath() {
final URI newRepo = URI.create("git://repo-name");
JGitFileSystemProxy fileSystem = (JGitFileSystemProxy) provider.newFileSystem(newRepo,
EMPTY_ENV);
//no infra created due to lazy loading nature of our FS
String[] names = tempDir.list();
assertThat(names).isEmpty();
String[] repos = new File(tempDir,
dirPathName).list();
assertThat(repos).isNull();
//FS created
fileSystem.getRealJGitFileSystem();
names = tempDir.list();
assertThat(names).contains(dirPathName);
repos = new File(tempDir,
dirPathName).list();
assertThat(repos).contains("repo-name.git");
}
}
代码示例来源:origin: Nike-Inc/riposte
@DataProvider(value = {
"50000 | false",
"50001 | true"
}, splitBy = "\\|")
@Test
public void default_method_implementations_return_expected_values(int rawContentLengthBytes,
boolean shouldValidateAsync) {
// given
Endpoint<?> defaultImpl = (Endpoint<Object>) () -> null;
RequestInfo<?> reqMock = mock(RequestInfo.class);
doReturn(rawContentLengthBytes).when(reqMock).getRawContentLengthInBytes();
// expect
assertThat(defaultImpl.isValidateRequestContent(null)).isTrue();
assertThat(defaultImpl.validationGroups(null)).isNull();
assertThat(defaultImpl.customRequestContentDeserializer(null)).isNull();
assertThat(defaultImpl.customResponseContentSerializer(null)).isNull();
assertThat(defaultImpl.requestContentType()).isNull();
assertThat(defaultImpl.completableFutureTimeoutOverrideMillis()).isNull();
assertThat(defaultImpl.shouldValidateAsynchronously(reqMock)).isEqualTo(shouldValidateAsync);
}
代码示例来源:origin: com.datastax.dse/dse-java-driver-core
@Test(groups = "unit")
public void should_not_serialize_raw_query_values() {
RegularStatement select = select().from("test").where(gt("i", raw("1")));
assertThat(select.getQueryString()).doesNotContain("?");
assertThat(select.getValues(ProtocolVersion.NEWEST_SUPPORTED, CodecRegistry.DEFAULT_INSTANCE))
.isNull();
}
内容来源于网络,如有侵权,请联系作者删除!