public abstract class ClassesSerializableTest extends ClassFinder
getExcludedPatterns(), ClassFinder.getBasePackages(),
ClassFinder.getJarPattern()| Constructor and Description |
|---|
ClassesSerializableTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
classesSerializable()
Tests that all the relevant classes and interfaces under
ClassFinder.getBasePackages() implement Serializable. |
protected Stream<String> |
getExcludedPatterns() |
protected void |
resetThreadLocals()
The method is called right after a class instantiation and might be
overriden by subclasses to reset thread local values (ex.
|
<T> T |
serializeAndDeserialize(T instance)
Performs actual serialization/deserialization
|
protected void |
setupThreadLocals()
The method is called right a class instantiation and might be overriden
by subclasses to install some necessary thread local values (ex.
|
findServerClasses, getBasePackages, getJarPattern, getRawClasspathEntries, isFunctionalType, isTestClass, isTestClassPathpublic <T> T serializeAndDeserialize(T instance)
throws Throwable
T - the type of the instanceinstance - the instanceThrowable - if something goes wrong.protected void resetThreadLocals()
setupThreadLocals()protected void setupThreadLocals()
resetThreadLocals()public void classesSerializable()
throws Throwable
ClassFinder.getBasePackages() implement Serializable.Throwable - serialization goes wrongCopyright © 2000–2026 Vaadin Ltd. All rights reserved.