You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2018/07/17 19:44:56 UTC
[GitHub] sijie commented on a change in pull request #2181: augmenting
protoschema with info for parsing
sijie commented on a change in pull request #2181: augmenting protoschema with info for parsing
URL: https://github.com/apache/incubator-pulsar/pull/2181#discussion_r203154033
##########
File path: pulsar-client-schema/src/test/java/org/apache/pulsar/client/schema/ProtobufSchemaTest.java
##########
@@ -67,4 +78,33 @@ public void testSchema() {
Assert.assertEquals(schema.toString(), EXPECTED_SCHEMA_JSON);
}
+
+ @Test
+ public void testGenericOf() {
+ try {
+ ProtobufSchema<org.apache.pulsar.client.schema.proto.Test.TestMessage> protobufSchema
+ = ProtobufSchema.ofGenericClass(org.apache.pulsar.client.schema.proto.Test.TestMessage.class,
+ Collections.emptyMap());
+ } catch (Exception e) {
+ Assert.fail();
Review comment:
nit: put a message in the fail method
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services