Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.linkedin.avro.fastserde.generated.avro.SimpleRecord;
import com.linkedin.avro.fastserde.generated.avro.TestRecord;
import com.linkedin.avro.fastserde.generated.ownavro.TestOwnCodegenRecord;
import com.linkedin.avroutil1.compatibility.AvroCompatibilityHelper;

import java.io.ByteArrayOutputStream;
Expand Down Expand Up @@ -81,6 +82,12 @@ public void testBuildFastSpecificDeserializerWithCorrectClasspath() {
cache.buildFastSpecificDeserializer(TestRecord.SCHEMA$, TestRecord.SCHEMA$);
}

@Test(groups = "deserializationTest")
public void testBuildFastSpecificDeserializerSupportsOurOwnGenerator() {
FastSerdeCache cache = FastSerdeCache.getDefaultInstance();
cache.buildFastSpecificDeserializer(TestOwnCodegenRecord.SCHEMA$, TestOwnCodegenRecord.SCHEMA$);
}

@Test(groups = "serializationTest", timeOut = 5_000L,
expectedExceptions = UnsupportedOperationException.class,
expectedExceptionsMessageRegExp = "Fast specific serializer could not be generated.")
Expand Down
Loading