runTests() — netty Function Reference
Architecture documentation for the runTests() function in SslContextTrustManagerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD ca743d5f_72b8_d15f_2c68_47954acd18ba["runTests()"] 78725ab9_1005_d91e_3eb0_838510c45286["SslContextTrustManagerTest"] ca743d5f_72b8_d15f_2c68_47954acd18ba -->|defined in| 78725ab9_1005_d91e_3eb0_838510c45286 3dcd05f0_c273_9a99_041f_4210892b24d0["testUsingAllCAs()"] 3dcd05f0_c273_9a99_041f_4210892b24d0 -->|calls| ca743d5f_72b8_d15f_2c68_47954acd18ba e183122c_bfbf_ae1a_d583_25e6814f57f1["testUsingAllCAsWithDuplicates()"] e183122c_bfbf_ae1a_d583_25e6814f57f1 -->|calls| ca743d5f_72b8_d15f_2c68_47954acd18ba 3e3567b0_db78_50d8_d378_08f6ae29d499["testUsingCAsOneAandB()"] 3e3567b0_db78_50d8_d378_08f6ae29d499 -->|calls| ca743d5f_72b8_d15f_2c68_47954acd18ba c721fdd4_cc78_3ef8_dd3d_642221a98b32["testUsingCAsOneAandTwo()"] c721fdd4_cc78_3ef8_dd3d_642221a98b32 -->|calls| ca743d5f_72b8_d15f_2c68_47954acd18ba style ca743d5f_72b8_d15f_2c68_47954acd18ba fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler/src/test/java/io/netty/handler/ssl/SslContextTrustManagerTest.java lines 79–105
private static void runTests(String[] caResources, String[] eecResources,
boolean[] expectations) throws Exception {
X509TrustManager tm = getTrustManager(caResources);
X509Certificate[] eecCerts = loadCertCollection(eecResources);
for (int i = 0; i < eecResources.length; i++) {
X509Certificate eecCert = eecCerts[i];
assertNotNull(eecCert, "Cannot use cert " + eecResources[i]);
try {
tm.checkServerTrusted(new X509Certificate[] { eecCert }, "RSA");
if (!expectations[i]) {
fail(String.format(
"Certificate %s was expected not to be valid when using CAs %s, but its "
+ "verification passed.", eecResources[i],
Arrays.asList(caResources)));
}
} catch (CertificateException e) {
if (expectations[i]) {
fail(String.format(
"Certificate %s was expected to be valid when using CAs %s, but its "
+ "verification failed.", eecResources[i],
Arrays.asList(caResources)));
}
}
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does runTests() do?
runTests() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/SslContextTrustManagerTest.java.
Where is runTests() defined?
runTests() is defined in handler/src/test/java/io/netty/handler/ssl/SslContextTrustManagerTest.java at line 79.
What calls runTests()?
runTests() is called by 4 function(s): testUsingAllCAs, testUsingAllCAsWithDuplicates, testUsingCAsOneAandB, testUsingCAsOneAandTwo.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free