You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "Robert Joseph Evans (JIRA)" <ji...@apache.org> on 2011/08/23 19:52:29 UTC

[jira] [Created] (MAPREDUCE-2873) The MRV2 Web App Tests need to be imporved

The MRV2 Web App Tests need to be imporved
------------------------------------------

                 Key: MAPREDUCE-2873
                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-2873
             Project: Hadoop Map/Reduce
          Issue Type: Test
          Components: jobhistoryserver, mrv2
    Affects Versions: 0.23.0
            Reporter: Robert Joseph Evans
             Fix For: 0.23.0


The current set of unittests for the Application Master and the JobHistory server are very lacking.

They look like
{code}
    WebAppTests.testPage(JobPage.class, AppContext.class, new TestAppContext());
{code}

All this example does is render the Job Page with an fake application context, but the page it is rendering does almost nothing.  Because no JobId is provided the test skips most of JobPage.  All it does is verify that not exceptions are thrown when it should attempt to verify that the correct data is returned.  

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira