OpenSslCertificateExceptionTest Class — netty Architecture
Architecture documentation for the OpenSslCertificateExceptionTest class in OpenSslCertificateExceptionTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD e241bb57_c48e_6c84_305f_577fb02887db["OpenSslCertificateExceptionTest"] 415313a8_1237_41c9_f8ab_9afc10a59a77["OpenSslCertificateExceptionTest.java"] e241bb57_c48e_6c84_305f_577fb02887db -->|defined in| 415313a8_1237_41c9_f8ab_9afc10a59a77 cc2b6dba_a8fb_e02d_72db_eb9a91b391f8["ensureOpenSsl()"] e241bb57_c48e_6c84_305f_577fb02887db -->|method| cc2b6dba_a8fb_e02d_72db_eb9a91b391f8 fc5a7668_cf6d_2883_5f49_aa4c4db854d4["testValidErrorCode()"] e241bb57_c48e_6c84_305f_577fb02887db -->|method| fc5a7668_cf6d_2883_5f49_aa4c4db854d4 9f4fed21_b94c_e1fa_4d84_5821dda268a8["testNonValidErrorCode()"] e241bb57_c48e_6c84_305f_577fb02887db -->|method| 9f4fed21_b94c_e1fa_4d84_5821dda268a8 a41d6a20_bda5_a493_b2ae_416dcaaa2524["testCanBeInstancedWhenOpenSslIsNotAvailable()"] e241bb57_c48e_6c84_305f_577fb02887db -->|method| a41d6a20_bda5_a493_b2ae_416dcaaa2524
Relationship Graph
Source Code
handler/src/test/java/io/netty/handler/ssl/OpenSslCertificateExceptionTest.java lines 28–61
public class OpenSslCertificateExceptionTest {
@BeforeAll
public static void ensureOpenSsl() {
OpenSsl.ensureAvailability();
}
@Test
public void testValidErrorCode() throws Exception {
Field[] fields = CertificateVerifier.class.getFields();
for (Field field : fields) {
if (field.isAccessible()) {
int errorCode = field.getInt(null);
OpenSslCertificateException exception = new OpenSslCertificateException(errorCode);
assertEquals(errorCode, exception.errorCode());
}
}
}
@Test
public void testNonValidErrorCode() {
assertThrows(IllegalArgumentException.class, new Executable() {
@Override
public void execute() throws Throwable {
new OpenSslCertificateException(Integer.MIN_VALUE);
}
});
}
@Test
public void testCanBeInstancedWhenOpenSslIsNotAvailable() {
new OpenSslCertificateException(0);
}
}
Source
Frequently Asked Questions
What is the OpenSslCertificateExceptionTest class?
OpenSslCertificateExceptionTest is a class in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/OpenSslCertificateExceptionTest.java.
Where is OpenSslCertificateExceptionTest defined?
OpenSslCertificateExceptionTest is defined in handler/src/test/java/io/netty/handler/ssl/OpenSslCertificateExceptionTest.java at line 28.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free