You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by eo...@apache.org on 2021/05/13 07:46:28 UTC
[pulsar] 34/46: Add JsonRecordBuilder implementation (#10052)
This is an automated email from the ASF dual-hosted git repository.
eolivelli pushed a commit to branch 2.7.2_ds_tmp
in repository https://gitbox.apache.org/repos/asf/pulsar.git
commit b1ee56c5ce61e788ce79d5a2723776406d56f077
Author: Vincent Royer <vr...@strapdata.com>
AuthorDate: Tue Apr 20 04:07:37 2021 +0200
Add JsonRecordBuilder implementation (#10052)
Provide a JSON GenericRecord builder allowing to produce JsonGenericRecord from the GenericJsonSchema.
Add a new class org.apache.pulsar.client.impl.schema.generic.JsonRecordBuilderImpl
Modify the org.apache.pulsar.client.impl.schema.generic.GenericJsonSchema.newRecordBuilder()
Add a unit test in org.apache.pulsar.client.impl.schema.JSONSchemaTest
---
.../test/java/org/apache/pulsar/client/impl/schema/JSONSchemaTest.java | 2 --
1 file changed, 2 deletions(-)
diff --git a/pulsar-client/src/test/java/org/apache/pulsar/client/impl/schema/JSONSchemaTest.java b/pulsar-client/src/test/java/org/apache/pulsar/client/impl/schema/JSONSchemaTest.java
index 586eb08..d6bd455 100644
--- a/pulsar-client/src/test/java/org/apache/pulsar/client/impl/schema/JSONSchemaTest.java
+++ b/pulsar-client/src/test/java/org/apache/pulsar/client/impl/schema/JSONSchemaTest.java
@@ -27,8 +27,6 @@ import static org.testng.Assert.assertEquals;
import static org.testng.Assert.assertTrue;
import static org.testng.AssertJUnit.assertSame;
-import static org.testng.AssertJUnit.assertSame;
-
import com.fasterxml.jackson.core.JsonProcessingException;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.ByteBufAllocator;