Class TopicPartitionTest
java.lang.Object
org.apache.kafka.common.TopicPartitionTest
This test ensures TopicPartition class is serializable and is serialization compatible.
Note: this ensures that the current code can deserialize data serialized with older versions of the code, but not the reverse.
That is, older code won't necessarily be able to deserialize data serialized with newer code.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoid
-
Constructor Details
-
TopicPartitionTest
public TopicPartitionTest()
-
-
Method Details
-
testSerializationRoundtrip
- Throws:
IOExceptionClassNotFoundException
-
testTopicPartitionSerializationCompatibility
@Test public void testTopicPartitionSerializationCompatibility() throws IOException, ClassNotFoundException- Throws:
IOExceptionClassNotFoundException
-
testTopicPartitionFromString
@Test public void testTopicPartitionFromString()
-