[
https://issues.apache.org/jira/browse/AVRO-779?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13004804#comment-13004804
]
Milind Bhandarkar commented on AVRO-779:
----------------------------------------
Both the tests you mentioned check that the properties are maintained in the
parsed version of the schema. This test makes sure that they are present in the
serialized (toString()) version of the schema too.
> Add Test for retention of schema metadata in schema serialization
> -----------------------------------------------------------------
>
> Key: AVRO-779
> URL: https://issues.apache.org/jira/browse/AVRO-779
> Project: Avro
> Issue Type: Test
> Components: java
> Affects Versions: 1.4.1
> Environment: All
> Reporter: Milind Bhandarkar
> Assignee: Milind Bhandarkar
> Priority: Minor
> Fix For: 1.5.1
>
> Attachments: avro-779.patch
>
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> Schema metadata (i.e. non-avro metadata) must be retained in the string
> serialization (toString) of Schema. The forthcoming patch adds a test to
> TestSchema that ensures this retention. Basically, it tests for the invariant:
> <code>
> assertEquals(schema, Schema.parse(schema.toString()));
> </code>
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira