Class BooterSerializer
- java.lang.Object
-
- org.apache.maven.plugin.surefire.booterclient.BooterSerializer
-
class BooterSerializer extends java.lang.Object
Knows how to serialize and deserialize the booter configuration.
The internal serialization format is through a properties file. The long-term goal of this class is not to expose this implementation information to its clients. This still leaks somewhat, and there are some cases where properties are being accessed as "Properties" instead of more representative domain objects.
-
-
Field Summary
Fields Modifier and Type Field Description private ForkConfiguration
forkConfiguration
-
Constructor Summary
Constructors Constructor Description BooterSerializer(ForkConfiguration forkConfiguration)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static java.lang.String
getTypeEncoded(java.lang.Object value)
(package private) java.io.File
serialize(KeyValueSource sourceProperties, ProviderConfiguration providerConfiguration, StartupConfiguration startupConfiguration, java.lang.Object testSet, boolean readTestsFromInStream, java.lang.Long pid, int forkNumber)
Does not modify sourcePropertiesprivate static java.lang.String
toString(java.lang.Object o)
-
-
-
Field Detail
-
forkConfiguration
private final ForkConfiguration forkConfiguration
-
-
Constructor Detail
-
BooterSerializer
BooterSerializer(ForkConfiguration forkConfiguration)
-
-
Method Detail
-
serialize
java.io.File serialize(KeyValueSource sourceProperties, ProviderConfiguration providerConfiguration, StartupConfiguration startupConfiguration, java.lang.Object testSet, boolean readTestsFromInStream, java.lang.Long pid, int forkNumber) throws java.io.IOException
Does not modify sourceProperties- Throws:
java.io.IOException
-
getTypeEncoded
private static java.lang.String getTypeEncoded(java.lang.Object value)
-
toString
private static java.lang.String toString(java.lang.Object o)
-
-