AppController extends Controller implements AMParams { public void info() { AppInfo info = new AppInfo(app, app.context); info("Application Master Overview"). __("Application ID:", info.getId()). __("Application Name:", info.getName()). __("User:", info.getUser()). __("Started on:", Times.format(info.getStartTime())). __("Elasped: ", org.apache.hadoop.util.StringUtils.formatTime( info.getElapsedTime() )); render(InfoPage.class); } protected  AppController(App app, Configuration conf, RequestContext ctx,
      String title); @Inject protected  AppController(App app, Configuration conf, RequestContext ctx); @Override void index(); void info(); void job(); void jobCounters(); void taskCounters(); void singleJobCounter(); void singleTaskCounter(); void tasks(); void task(); void attempts(); void conf(); void downloadConf(); void requireJob(); void requireTask();  }
@Test public void testInfo() { appController.info(); Iterator<ResponseInfo.Item> iterator = appController.getResponseInfo() .iterator(); ResponseInfo.Item item = iterator.next(); assertEquals("Application ID:", item.key); assertEquals("application_0_0000", item.value); item = iterator.next(); assertEquals("Application Name:", item.key); assertEquals("AppName", item.value); item = iterator.next(); assertEquals("User:", item.key); assertEquals("User", item.value); item = iterator.next(); assertEquals("Started on:", item.key); item = iterator.next(); assertEquals("Elasped: ", item.key); }