[ 
https://issues.apache.org/jira/browse/HBASE-9980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13824651#comment-13824651
 ] 

Andrew Purtell commented on HBASE-9980:
---------------------------------------

bq. Then make instances of those (which is the tricky part)

When executed as a Junit test, the test would assert if there isn't coverage in 
the gold file and if something fails to operate correctly.

Would also have a Main for creating a new gold file. There would be generators 
for the writable types, and the utility would abort and fail if there is no 
generator coverage from something discovered from HBaseObjectWritable.



> [0.94] Wire compatibility test for 0.94
> ---------------------------------------
>
>                 Key: HBASE-9980
>                 URL: https://issues.apache.org/jira/browse/HBASE-9980
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.94.13
>            Reporter: Lars Hofhansl
>            Assignee: Andrew Purtell
>
> See HBASE-9834.
> We should have a test that:
> # generates a file with all kinds of objects serialized into it. Save that 
> file as part of the HBase tests
> # a test can then read the objects back from that file
> # a test can regenerate that file
> If both tests pass we can be reasonably sure that neither readFields nor 
> write was changed in an incompatible way.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to