@Test public void testAppPage() throws Exception { Injector injector = WebAppTests.createMockInjector(ApplicationContext.class, mockApplicationHistoryManager(1, 5, 1)); AppPage appPageInstance = injector.getInstance(AppPage.class); appPageInstance.render(); WebAppTests.flushOutput(injector); appPageInstance.set(YarnWebParams.APPLICATION_ID, ApplicationId .newInstance(0, 1).toString()); appPageInstance.render(); WebAppTests.flushOutput(injector); }
public static AHSWebApp getInstance() { if (instance == null) { instance = new AHSWebApp(); } return instance; }
AHSWebApp extends WebApp implements YarnWebParams { public static AHSWebApp getInstance() { if (instance == null) { instance = new AHSWebApp(); } return instance; } }
AHSWebApp extends WebApp implements YarnWebParams { public static AHSWebApp getInstance() { if (instance == null) { instance = new AHSWebApp(); } return instance; } private  AHSWebApp(); }
AHSWebApp extends WebApp implements YarnWebParams { public static AHSWebApp getInstance() { if (instance == null) { instance = new AHSWebApp(); } return instance; } private  AHSWebApp(); static AHSWebApp getInstance(); @Private @VisibleForTesting static void resetInstance(); ApplicationHistoryManager getApplicationHistoryManager(); void setApplicationHistoryManager(
      ApplicationHistoryManager applicationHistoryManager); TimelineDelegationTokenSecretManagerService getTimelineDelegationTokenSecretManagerService(); void setTimelineDelegationTokenSecretManagerService(
      TimelineDelegationTokenSecretManagerService secretManagerService); TimelineDataManager getTimelineDataManager(); void setTimelineDataManager(TimelineDataManager timelineDataManager); @Override void setup(); }
AHSWebApp extends WebApp implements YarnWebParams { public static AHSWebApp getInstance() { if (instance == null) { instance = new AHSWebApp(); } return instance; } private  AHSWebApp(); static AHSWebApp getInstance(); @Private @VisibleForTesting static void resetInstance(); ApplicationHistoryManager getApplicationHistoryManager(); void setApplicationHistoryManager(
      ApplicationHistoryManager applicationHistoryManager); TimelineDelegationTokenSecretManagerService getTimelineDelegationTokenSecretManagerService(); void setTimelineDelegationTokenSecretManagerService(
      TimelineDelegationTokenSecretManagerService secretManagerService); TimelineDataManager getTimelineDataManager(); void setTimelineDataManager(TimelineDataManager timelineDataManager); @Override void setup();  }