Class OffsetAndMetadataTest
java.lang.Object
org.apache.kafka.clients.consumer.OffsetAndMetadataTest
This test case ensures OffsetAndMetadata 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 TypeMethodDescriptionvoidvoidvoidvoidvoidvoid
-
Constructor Details
-
OffsetAndMetadataTest
public OffsetAndMetadataTest()
-
-
Method Details
-
testInvalidNegativeOffset
@Test public void testInvalidNegativeOffset() -
testSerializationRoundtrip
- Throws:
IOExceptionClassNotFoundException
-
testDeserializationCompatibilityBeforeLeaderEpoch
@Test public void testDeserializationCompatibilityBeforeLeaderEpoch() throws IOException, ClassNotFoundException- Throws:
IOExceptionClassNotFoundException
-
testDeserializationCompatibilityWithLeaderEpoch
@Test public void testDeserializationCompatibilityWithLeaderEpoch() throws IOException, ClassNotFoundException- Throws:
IOExceptionClassNotFoundException
-
testEqualsWithNullAndNegativeLeaderEpoch
@Test public void testEqualsWithNullAndNegativeLeaderEpoch() -
testEqualsWithNullAndEmptyMetadata
@Test public void testEqualsWithNullAndEmptyMetadata()
-