Return-Path: X-Original-To: apmail-hadoop-yarn-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-yarn-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1B0B3CF0F for ; Thu, 13 Nov 2014 03:55:34 +0000 (UTC) Received: (qmail 5747 invoked by uid 500); 13 Nov 2014 03:55:34 -0000 Delivered-To: apmail-hadoop-yarn-issues-archive@hadoop.apache.org Received: (qmail 5700 invoked by uid 500); 13 Nov 2014 03:55:34 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: yarn-issues@hadoop.apache.org Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 5679 invoked by uid 99); 13 Nov 2014 03:55:33 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Nov 2014 03:55:33 +0000 Date: Thu, 13 Nov 2014 03:55:33 +0000 (UTC) From: "zhihai xu (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (YARN-2799) cleanup TestLogAggregationService based on the change in YARN-90 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/YARN-2799?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] zhihai xu updated YARN-2799: ---------------------------- Attachment: YARN-2799.001.patch > cleanup TestLogAggregationService based on the change in YARN-90 > ---------------------------------------------------------------- > > Key: YARN-2799 > URL: https://issues.apache.org/jira/browse/YARN-2799 > Project: Hadoop YARN > Issue Type: Improvement > Components: test > Reporter: zhihai xu > Assignee: zhihai xu > Priority: Minor > Attachments: YARN-2799.000.patch, YARN-2799.001.patch > > > cleanup TestLogAggregationService based on the change in YARN-90. > The following code is added to setup in YARN-90, > {code} > dispatcher = createDispatcher(); > appEventHandler = mock(EventHandler.class); > dispatcher.register(ApplicationEventType.class, appEventHandler); > {code} > In this case, we should remove all these code from each test function to avoid duplicate code. > Same for dispatcher.stop() which is in tearDown, > we can remove dispatcher.stop() from from each test function also because it will always be called from tearDown for each test. -- This message was sent by Atlassian JIRA (v6.3.4#6332)