I am writing some custom Hadoop Writable classes. I would like to use JUnit to test the readFields () and write () functions.
Is there a way to redirect a record (DataOutput out) to readFields (DataInput in)? I would like to do something like:
CustomWritable writeable1 = new CustomWritable(); CustomWritable writeable2 = new CustomWritable();
Thoughts?
source share