YARN-1534. Fixed failure of test TestAHSWebApp. Contributed by Shinichi Yamashita.

svn merge --ignore-ancestry -c 1556751 ../YARN-321


git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1562205 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Vinod Kumar Vavilapalli 2014-01-28 20:02:34 +00:00
parent c31729d1d4
commit 1b20412d06
3 changed files with 6 additions and 3 deletions

View File

@ -514,6 +514,8 @@ Branch YARN-321: Generic ApplicationHistoryService
YARN-1023. Added Webservices REST APIs support for Application History. (Zhijie
Shen via vinodkv)
YARN-1534. Fixed failure of test TestAHSWebApp. (Shinichi Yamashita via vinodkv)
Release 2.2.0 - 2013-10-13
INCOMPATIBLE CHANGES

View File

@ -44,7 +44,7 @@ import com.google.inject.Injector;
public class TestAHSWebApp extends ApplicationHistoryStoreTestUtils {
public TestAHSWebApp(ApplicationHistoryStore store) {
public void setApplicationHistoryStore(ApplicationHistoryStore store) {
this.store = store;
}

View File

@ -90,7 +90,8 @@ public class TestAHSWebServices extends JerseyTest {
private ApplicationHistoryManager mockApplicationHistoryManager()
throws Exception {
ApplicationHistoryStore store = new MemoryApplicationHistoryStore();
TestAHSWebApp testAHSWebApp = new TestAHSWebApp(store);
TestAHSWebApp testAHSWebApp = new TestAHSWebApp();
testAHSWebApp.setApplicationHistoryStore(store);
ApplicationHistoryManager ahManager =
testAHSWebApp.mockApplicationHistoryManager(5, 5, 5);
return ahManager;