AbstractMarshallingTest Class — netty Architecture
Architecture documentation for the AbstractMarshallingTest class in AbstractMarshallingTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 23a4424a_951d_f5d7_16b4_bb07bd4a1e53["AbstractMarshallingTest"] 6cbf5af7_8002_5da8_42bf_5380958f6493["AbstractMarshallingTest.java"] 23a4424a_951d_f5d7_16b4_bb07bd4a1e53 -->|defined in| 6cbf5af7_8002_5da8_42bf_5380958f6493 3a1c86a9_36f4_aa29_c8e6_55cc6795ec5f["checkSupported()"] 23a4424a_951d_f5d7_16b4_bb07bd4a1e53 -->|method| 3a1c86a9_36f4_aa29_c8e6_55cc6795ec5f a211ce50_a7b6_2c30_d3fa_7dd66ee61338["checkFactorySupported()"] 23a4424a_951d_f5d7_16b4_bb07bd4a1e53 -->|method| a211ce50_a7b6_2c30_d3fa_7dd66ee61338
Relationship Graph
Source Code
codec-marshalling/src/test/java/io/netty/handler/codec/marshalling/AbstractMarshallingTest.java lines 28–53
public abstract class AbstractMarshallingTest {
static final String SERIAL_FACTORY = "serial";
static final String RIVER_FACTORY = "river";
@BeforeAll
public static void checkSupported() throws Throwable {
Throwable error = null;
try {
checkFactorySupported(Marshalling.getProvidedMarshallerFactory(SERIAL_FACTORY));
checkFactorySupported(Marshalling.getProvidedMarshallerFactory(RIVER_FACTORY));
} catch (Throwable cause) {
// This may fail on Java 9+ depending on which command-line arguments are used when building.
if (PlatformDependent.javaVersion() < 9) {
throw cause;
}
error = cause;
}
assumeTrue(error == null, error + " was not null");
}
private static void checkFactorySupported(MarshallerFactory factory) throws IOException {
factory.createMarshaller(new MarshallingConfiguration()).close();
factory.createUnmarshaller(new MarshallingConfiguration()).close();
}
}
Defined In
Source
Frequently Asked Questions
What is the AbstractMarshallingTest class?
AbstractMarshallingTest is a class in the netty codebase, defined in codec-marshalling/src/test/java/io/netty/handler/codec/marshalling/AbstractMarshallingTest.java.
Where is AbstractMarshallingTest defined?
AbstractMarshallingTest is defined in codec-marshalling/src/test/java/io/netty/handler/codec/marshalling/AbstractMarshallingTest.java at line 28.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free