Home
last modified time | relevance | path

Searched refs:assertNotNull (Results 1 – 25 of 591) sorted by relevance

12345678910>>...24

/libcore/luni/src/test/java/org/apache/harmony/nio/tests/java/nio/channels/spi/
DSelectorProviderTest.java34 assertNotNull(SelectorProvider.provider()); in test_open_methods()
39 assertNotNull(SelectorProvider.provider().openDatagramChannel()); in test_open_methods()
40 assertNotNull(SelectorProvider.provider().openPipe()); in test_open_methods()
41 assertNotNull(SelectorProvider.provider().openServerSocketChannel()); in test_open_methods()
42 assertNotNull(SelectorProvider.provider().openSocketChannel()); in test_open_methods()
43 assertNotNull(SelectorProvider.provider().openSelector()); in test_open_methods()
/libcore/luni/src/test/java/libcore/java/util/jar/
DOldJarEntryTest.java57 assertNotNull(newJarEntry); in test_ConstructorLjava_util_jar_JarEntry_on_null()
72 assertNotNull("Jar file is null", jarFile); in test_ConstructorLjava_util_zip_ZipEntry()
74 assertNotNull("Zip entry is null", zipEntry); in test_ConstructorLjava_util_zip_ZipEntry()
76 assertNotNull("Jar entry is null", jarEntry); in test_ConstructorLjava_util_zip_ZipEntry()
102 assertNotNull("Jar file is null", jarFile); in test_ConstructorLjava_lang_String()
104 assertNotNull("Zip entry is null", zipEntry); in test_ConstructorLjava_lang_String()
106 assertNotNull("Jar entry is null", jarEntry); in test_ConstructorLjava_lang_String()
128 assertNotNull("Jar file is null", jarFile); in test_ConstructorLjava_util_jar_JarEntry()
130 assertNotNull("Jar entry is null", je); in test_ConstructorLjava_util_jar_JarEntry()
132 assertNotNull("Jar entry is null", jarEntry); in test_ConstructorLjava_util_jar_JarEntry()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DMapModeTest.java32 assertNotNull(FileChannel.MapMode.PRIVATE); in test_PRIVATE_READONLY_READWRITE()
33 assertNotNull(FileChannel.MapMode.READ_ONLY); in test_PRIVATE_READONLY_READWRITE()
34 assertNotNull(FileChannel.MapMode.READ_WRITE); in test_PRIVATE_READONLY_READWRITE()
48 assertNotNull(FileChannel.MapMode.PRIVATE.toString()); in test_toString()
49 assertNotNull(FileChannel.MapMode.READ_ONLY.toString()); in test_toString()
50 assertNotNull(FileChannel.MapMode.READ_WRITE.toString()); in test_toString()
/libcore/luni/src/test/java/libcore/java/nio/channels/spi/
DAsynchronousChannelProviderTest.java31 assertNotNull(provider); in test_open_methods()
34 assertNotNull(provider.openAsynchronousChannelGroup(1, new TestThreadFactory())); in test_open_methods()
36 assertNotNull(provider.openAsynchronousChannelGroup(Executors.newSingleThreadExecutor(), in test_open_methods()
39 assertNotNull(provider.openAsynchronousServerSocketChannel( in test_open_methods()
42 assertNotNull(provider.openAsynchronousSocketChannel( in test_open_methods()
45 assertNotNull(provider.openAsynchronousChannelGroup(1, new TestThreadFactory())); in test_open_methods()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DTypeNotPresentExceptionTest.java28 assertNotNull(e); in test_constructorLjava_lang_StringLjava_lang_Throwable()
30 assertNotNull(m); in test_constructorLjava_lang_StringLjava_lang_Throwable()
33 assertNotNull(e); in test_constructorLjava_lang_StringLjava_lang_Throwable()
35 assertNotNull(m); in test_constructorLjava_lang_StringLjava_lang_Throwable()
39 assertNotNull(e.getMessage()); in test_constructorLjava_lang_StringLjava_lang_Throwable()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DAnnotationTest.java27 assertNotNull(new Annotation(null)); in testAnnotation()
28 assertNotNull(new Annotation("value")); in testAnnotation()
42 assertNotNull(new Annotation(null).toString()); in testToString()
43 assertNotNull(new Annotation("value").toString()); in testToString()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DMissingResourceExceptionTest.java33assertNotNull(new MissingResourceException("Detail string", "Class name string", "Key string")); in test_ConstructorLjava_lang_StringLjava_lang_StringLjava_lang_String()
34 assertNotNull(new MissingResourceException(null, "Class name string", "Key string")); in test_ConstructorLjava_lang_StringLjava_lang_StringLjava_lang_String()
35 assertNotNull(new MissingResourceException("Detail string", null, "Key string")); in test_ConstructorLjava_lang_StringLjava_lang_StringLjava_lang_String()
36 assertNotNull(new MissingResourceException("Detail string", "Class name string", null)); in test_ConstructorLjava_lang_StringLjava_lang_StringLjava_lang_String()
DNoSuchElementExceptionTest.java31 assertNotNull(new NoSuchElementException()); in test_Constructor()
48 assertNotNull(new NoSuchElementException("String")); in test_ConstructorLjava_lang_String()
49 assertNotNull(new NoSuchElementException(null)); in test_ConstructorLjava_lang_String()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/
DJarEntryTest.java73 assertNotNull(newJarEntry); in test_ConstructorLjava_util_jar_JarEntry()
85 assertNotNull("Jar file is null", jarFile); in test_ConstructorLjava_util_zip_ZipEntry()
87 assertNotNull("Zip entry is null", zipEntry); in test_ConstructorLjava_util_zip_ZipEntry()
89 assertNotNull("Jar entry is null", jarEntry); in test_ConstructorLjava_util_zip_ZipEntry()
108 assertNotNull("Should have Manifest attributes", jarEntry in test_getAttributes()
150 assertNotNull(jarEntry1.getCodeSigners()); in testCertificatesAndCodesigners()
151 assertNotNull(jarEntry2.getCodeSigners()); in testCertificatesAndCodesigners()
152 assertNotNull(jarEntry1.getCertificates()); in testCertificatesAndCodesigners()
153 assertNotNull(jarEntry2.getCertificates()); in testCertificatesAndCodesigners()
/libcore/luni/src/test/java/tests/security/cert/
DCertStore2Test.java45 assertNotNull(certStore); in testGetInstanceStringCertStoreParameters()
46 assertNotNull(certStore.getCertStoreParameters()); in testGetInstanceStringCertStoreParameters()
56 assertNotNull(certStore); in testGetInstanceStringCertStoreParameters()
89 assertNotNull(certStore); in testGetInstanceStringCertStoreParametersString()
90 assertNotNull(certStore.getCertStoreParameters()); in testGetInstanceStringCertStoreParametersString()
105 assertNotNull(certStore); in testGetInstanceStringCertStoreParametersString()
160 assertNotNull(certStore); in testGetInstanceStringCertStoreParametersProvider()
161 assertNotNull(certStore.getCertStoreParameters()); in testGetInstanceStringCertStoreParametersProvider()
173 assertNotNull(certStore); in testGetInstanceStringCertStoreParametersProvider()
213 assertNotNull(certStore); in testGetCertificates()
[all …]
/libcore/dom/src/test/java/org/w3c/domts/level1/core/
Dattrsetvaluenomodificationallowederr.java86 assertNotNull("genderNotNull", gender); in runTest()
89 assertNotNull("genderFirstChildNotNull", gen); in runTest()
92 assertNotNull("genderFirstGrandchildNotNull", g); in runTest()
94 assertNotNull("attributesNotNull", attrList); in runTest()
96 assertNotNull("attrNotNull", attrNode); in runTest()
Dcharacterdatareplacedatanomodificationallowederr.java78 assertNotNull("entReferenceNotNull", entReference); in runTest()
83 assertNotNull("createdEntRefNotNull", entReference); in runTest()
86 assertNotNull("entElementNotNull", entElement); in runTest()
88 assertNotNull("entElementContentNotNull", entElementContent); in runTest()
Dcharacterdatainsertdatanomodificationallowederr.java77 assertNotNull("entReferenceNotNull", entReference); in runTest()
82 assertNotNull("createdEntRefNotNull", entReference); in runTest()
85 assertNotNull("entElementNotNull", entElement); in runTest()
87 assertNotNull("entElementContentNotNull", entElementContent); in runTest()
Dcharacterdatadeletedatanomodificationallowederr.java77 assertNotNull("entReferenceNotNull", entReference); in runTest()
82 assertNotNull("createdEntRefNotNull", entReference); in runTest()
85 assertNotNull("entElementNotNull", entElement); in runTest()
87 assertNotNull("entElementContentNotNull", entElementContent); in runTest()
Dcharacterdataappenddatanomodificationallowederr.java77 assertNotNull("entReferenceNotNull", entReference); in runTest()
82 assertNotNull("createdEntRefNotNull", entReference); in runTest()
85 assertNotNull("entElementNotNull", entElement); in runTest()
87 assertNotNull("entElementContentNotNull", entElementContent); in runTest()
Dcharacterdatasetdatanomodificationallowederr.java77 assertNotNull("entReferenceNotNull", entReference); in runTest()
82 assertNotNull("createdEntRefNotNull", entReference); in runTest()
85 assertNotNull("entElementNotNull", entElement); in runTest()
87 assertNotNull("entElementContentNotNull", entElementContent); in runTest()
Dtextsplittextnomodificationallowederr.java80 assertNotNull("entRefNotNull", entRef); in runTest()
85 assertNotNull("createdEntRefNotNull", entRef); in runTest()
88 assertNotNull("entElementNotNull", entElement); in runTest()
90 assertNotNull("entElementTextNotNull", entElementText); in runTest()
Dnodesetnodevaluenomodificationallowederr.java80 assertNotNull("entRefNotNull", entRef); in runTest()
85 assertNotNull("createdEntRefNotNull", entRef); in runTest()
88 assertNotNull("entElementNotNull", entElement); in runTest()
90 assertNotNull("entElementTextNotNull", entElementText); in runTest()
/libcore/luni/src/test/java/libcore/java/security/
DOldKeyPairGeneratorTestDH.java32 assertNotNull("no keypair generated", keyPair); in testKeyPairGenerator()
33 assertNotNull("no public key generated", keyPair.getPublic()); in testKeyPairGenerator()
34 assertNotNull("no private key generated", keyPair.getPrivate()); in testKeyPairGenerator()
/libcore/luni/src/test/java/libcore/java/security/cert/
DX509CRLTest.java99 assertNotNull("File does not exist: " + name, is); in getCertificate()
102 assertNotNull(c); in getCertificate()
114 assertNotNull("File does not exist: " + name, is); in getCRL()
117 assertNotNull(crl); in getCRL()
293 assertNotNull(lastUpdate); in getThisUpdateNextUpdate()
294 assertNotNull(nextUpdate); in getThisUpdateNextUpdate()
307 assertNotNull(lastUpdate); in getThisUpdateNextUpdate()
308 assertNotNull(nextUpdate); in getThisUpdateNextUpdate()
388 assertNotNull(rsaEntry); in assertRsaCrlEntry()
402 assertNotNull(rsaEntry.toString()); in assertRsaCrlEntry()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DSSLContextSpiTest.java19 import static org.junit.Assert.assertNotNull;
196 assertNotNull("Subtest_01: Object is NULL", ssl.engineCreateSSLEngine()); in commonTest_02()
198 assertNotNull("Subtest_02: Object is NULL", sleng); in commonTest_02()
228 assertNotNull(defaultParams); in getSslParameters()
230 assertNotNull(protocols); in getSslParameters()
233 assertNotNull(cipherSuites); in getSslParameters()
237 assertNotNull(supportedParams); in getSslParameters()
239 assertNotNull(protocols); in getSslParameters()
242 assertNotNull(cipherSuites); in getSslParameters()
DSSLContext1Test.java113 assertNotNull("No SSLEngine created", in test_ConstructorLjavax_net_ssl_SSLContextSpiLjava_security_ProviderLjava_lang_String()
115 assertNotNull("No SSLEngine created", in test_ConstructorLjavax_net_ssl_SSLContextSpiLjava_security_ProviderLjava_lang_String()
150 assertNotNull("SSL engine is null", sslEngine); in test_createSSLEngine()
165 assertNotNull("SSL engine is null", sslEngine); in test_createSSLEngineLjava_lang_StringI()
180 assertNotNull("SSLContext objects were not created", sslC); in test_getClientSessionContext()
183 assertNotNull("Client session is incorrectly instantiated: " + i, in test_getClientSessionContext()
185 assertNotNull("Server session is incorrectly instantiated: " + i, in test_getClientSessionContext()
203 assertNotNull("No SSLContext created", sslContext); in test_getInstanceLjava_lang_String01()
320 assertNotNull("Not SSLContext created", sslContext); in test_getInstanceLjava_lang_StringLjava_lang_String04()
385 assertNotNull("Not SSLContext created", sslContext); in test_getInstanceLjava_lang_StringLjava_security_Provider03()
[all …]
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DIdentityScopeTest.java55 assertNotNull(new IdentityScopeStub("Aleksei Semenov").toString()); in testToString()
62 assertNotNull(new IdentityScopeStub()); in testIdentityScope()
70 assertNotNull(is); in testIdentityScopeString()
80 assertNotNull(is); in testIdentityScopeStringIdentityScope()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
DUndeclaredThrowableExceptionTest.java31 assertNotNull(e); in test_UndeclaredThrowableException_LThrowable()
42 assertNotNull(e); in test_UndeclaredThrowableException_LThrowable_LString()
52 assertNotNull(e); in test_getUndeclaredThrowable()
/libcore/luni/src/test/java/libcore/java/time/chrono/
DChronologyDisplayNameTest.java31 import static org.junit.Assert.assertNotNull;
55 assertNotNull(displayName); in testDisplayName()
64 assertNotNull(era); in testEras()
66 assertNotNull(displayName); in testEras()

12345678910>>...24