testMajorVersionFromJavaSpecificationVersion() — netty Function Reference
Architecture documentation for the testMajorVersionFromJavaSpecificationVersion() function in PlatformDependent0Test.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 48e9c0f8_660b_45e1_4681_497874670297["testMajorVersionFromJavaSpecificationVersion()"] bfc50fb1_c677_20d5_4d80_2aeb2f0c547e["PlatformDependent0Test"] 48e9c0f8_660b_45e1_4681_497874670297 -->|defined in| bfc50fb1_c677_20d5_4d80_2aeb2f0c547e style 48e9c0f8_660b_45e1_4681_497874670297 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/test/java/io/netty/util/internal/PlatformDependent0Test.java lines 59–83
@Test
public void testMajorVersionFromJavaSpecificationVersion() {
final SecurityManager current = System.getSecurityManager();
try {
System.setSecurityManager(new SecurityManager() {
@Override
public void checkPropertyAccess(String key) {
if (key.equals("java.specification.version")) {
// deny
throw new SecurityException(key);
}
}
// so we can restore the security manager
@Override
public void checkPermission(Permission perm) {
}
});
assertEquals(6, PlatformDependent0.majorVersionFromJavaSpecificationVersion());
} finally {
System.setSecurityManager(current);
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testMajorVersionFromJavaSpecificationVersion() do?
testMajorVersionFromJavaSpecificationVersion() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/internal/PlatformDependent0Test.java.
Where is testMajorVersionFromJavaSpecificationVersion() defined?
testMajorVersionFromJavaSpecificationVersion() is defined in common/src/test/java/io/netty/util/internal/PlatformDependent0Test.java at line 59.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free