You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by Steve Loughran <st...@gmail.com> on 2012/04/12 18:54:52 UTC

test plan for Tool subclasses

What's the best way to extend entry points that extend Tool?

I've written a new entry point that lets you test topology scripts by
loading them, resolving hostnames provided on the command line/in a file,
then printing out the results to the console.
https://issues.apache.org/jira/browse/HADOOP-8231

What I want to do is test this, which would be best done with some Tool
running test case that would capture System.out and let me make assertions
about its contents.

Are there any tests that do this for me to borrow from??