From commits-return-4590-archive-asf-public=cust-asf.ponee.io@zeppelin.apache.org Fri Jun 15 16:34:22 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id D254D18066C for ; Fri, 15 Jun 2018 16:34:21 +0200 (CEST) Received: (qmail 16840 invoked by uid 500); 15 Jun 2018 14:34:21 -0000 Mailing-List: contact commits-help@zeppelin.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@zeppelin.apache.org Delivered-To: mailing list commits@zeppelin.apache.org Received: (qmail 16831 invoked by uid 99); 15 Jun 2018 14:34:20 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jun 2018 14:34:20 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id D5C92E1132; Fri, 15 Jun 2018 14:34:20 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: zjffdu@apache.org To: commits@zeppelin.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: zeppelin git commit: [HOTFIX] Fix unit test failure of NewSparkInterpreterTest Date: Fri, 15 Jun 2018 14:34:20 +0000 (UTC) Repository: zeppelin Updated Branches: refs/heads/branch-0.8 f50acdf63 -> 974cd5dae [HOTFIX] Fix unit test failure of NewSparkInterpreterTest Project: http://git-wip-us.apache.org/repos/asf/zeppelin/repo Commit: http://git-wip-us.apache.org/repos/asf/zeppelin/commit/974cd5da Tree: http://git-wip-us.apache.org/repos/asf/zeppelin/tree/974cd5da Diff: http://git-wip-us.apache.org/repos/asf/zeppelin/diff/974cd5da Branch: refs/heads/branch-0.8 Commit: 974cd5daed41dc50885a6fa773a027b7f1166de1 Parents: f50acdf Author: Jeff Zhang Authored: Fri Jun 15 22:34:13 2018 +0800 Committer: Jeff Zhang Committed: Fri Jun 15 22:34:13 2018 +0800 ---------------------------------------------------------------------- .../java/org/apache/zeppelin/spark/NewSparkInterpreterTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/zeppelin/blob/974cd5da/spark/interpreter/src/test/java/org/apache/zeppelin/spark/NewSparkInterpreterTest.java ---------------------------------------------------------------------- diff --git a/spark/interpreter/src/test/java/org/apache/zeppelin/spark/NewSparkInterpreterTest.java b/spark/interpreter/src/test/java/org/apache/zeppelin/spark/NewSparkInterpreterTest.java index 263c38b..25a400c 100644 --- a/spark/interpreter/src/test/java/org/apache/zeppelin/spark/NewSparkInterpreterTest.java +++ b/spark/interpreter/src/test/java/org/apache/zeppelin/spark/NewSparkInterpreterTest.java @@ -67,7 +67,7 @@ public class NewSparkInterpreterTest { // catch the interpreter output in onUpdate private InterpreterResultMessageOutput messageOutput; - private RemoteEventClient mockRemoteEventClient = mock(RemoteEventClient.class); + private RemoteEventClient mockRemoteEventClient; @Test public void testSparkInterpreter() throws IOException, InterruptedException, InterpreterException { @@ -82,6 +82,7 @@ public class NewSparkInterpreterTest { interpreter.setInterpreterGroup(mock(InterpreterGroup.class)); interpreter.open(); + mockRemoteEventClient = mock(RemoteEventClient.class); interpreter.getZeppelinContext().setEventClient(mockRemoteEventClient); InterpreterResult result = interpreter.interpret("val a=\"hello world\"", getInterpreterContext()); assertEquals(InterpreterResult.Code.SUCCESS, result.code());