Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id D2C32200CB4 for ; Tue, 13 Jun 2017 00:07:59 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D1837160BF0; Mon, 12 Jun 2017 22:07:59 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 2B0EA160BD9 for ; Tue, 13 Jun 2017 00:07:59 +0200 (CEST) Received: (qmail 76196 invoked by uid 500); 12 Jun 2017 22:07:58 -0000 Mailing-List: contact commits-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@accumulo.apache.org Delivered-To: mailing list commits@accumulo.apache.org Received: (qmail 76178 invoked by uid 99); 12 Jun 2017 22:07:58 -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; Mon, 12 Jun 2017 22:07:58 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 79F31DFFB2; Mon, 12 Jun 2017 22:07:57 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: ctubbsii@apache.org To: commits@accumulo.apache.org Date: Mon, 12 Jun 2017 22:07:58 -0000 Message-Id: <27f3ee3d811844b69c8c0d23064158b1@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [2/8] accumulo git commit: ACCUMULO-4640 Fix broken SiteConfigurationTest archived-at: Mon, 12 Jun 2017 22:08:00 -0000 ACCUMULO-4640 Fix broken SiteConfigurationTest Avoid using non-existent constructor in mock object creation Also fix a trivial javadoc warning Also fix a trivial test failure with Java 8 and Powermock Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/de83e61c Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/de83e61c Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/de83e61c Branch: refs/heads/1.8 Commit: de83e61c7f965b6f83482c6070b483bd1835b5a6 Parents: 4effd0e Author: Christopher Tubbs Authored: Mon Jun 12 14:23:39 2017 -0400 Committer: Christopher Tubbs Committed: Mon Jun 12 14:23:39 2017 -0400 ---------------------------------------------------------------------- .../main/java/org/apache/accumulo/core/file/rfile/RFile.java | 2 +- .../org/apache/accumulo/core/conf/SiteConfigurationTest.java | 5 ++--- .../java/org/apache/accumulo/shell/ShellSetInstanceTest.java | 2 ++ 3 files changed, 5 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/accumulo/blob/de83e61c/core/src/main/java/org/apache/accumulo/core/file/rfile/RFile.java ---------------------------------------------------------------------- diff --git a/core/src/main/java/org/apache/accumulo/core/file/rfile/RFile.java b/core/src/main/java/org/apache/accumulo/core/file/rfile/RFile.java index bab2266..d5779ce 100644 --- a/core/src/main/java/org/apache/accumulo/core/file/rfile/RFile.java +++ b/core/src/main/java/org/apache/accumulo/core/file/rfile/RFile.java @@ -1022,7 +1022,7 @@ public class RFile { * @return map of locality group names to column families. The default locality group will have {@code null} for a name. RFile will only track up to * {@value Writer#MAX_CF_IN_DLG} families for the default locality group. After this it will stop tracking. For the case where the default group has * more thn {@value Writer#MAX_CF_IN_DLG} families an empty list of families is returned. - * @see LocalityGroupUtil#seek(Reader, Range, String, Map) + * @see LocalityGroupUtil#seek(RFile.Reader, Range, String, Map) */ public Map> getLocalityGroupCF() { Map> cf = new HashMap<>(); http://git-wip-us.apache.org/repos/asf/accumulo/blob/de83e61c/core/src/test/java/org/apache/accumulo/core/conf/SiteConfigurationTest.java ---------------------------------------------------------------------- diff --git a/core/src/test/java/org/apache/accumulo/core/conf/SiteConfigurationTest.java b/core/src/test/java/org/apache/accumulo/core/conf/SiteConfigurationTest.java index f89dbfa..29304c8 100644 --- a/core/src/test/java/org/apache/accumulo/core/conf/SiteConfigurationTest.java +++ b/core/src/test/java/org/apache/accumulo/core/conf/SiteConfigurationTest.java @@ -44,13 +44,12 @@ public class SiteConfigurationTest { } @Test - public void testOnlySensitivePropertiesExtractedFromCredetialProvider() throws SecurityException, NoSuchMethodException { + public void testOnlySensitivePropertiesExtractedFromCredentialProvider() throws SecurityException, NoSuchMethodException { if (!isCredentialProviderAvailable) { return; } - SiteConfiguration siteCfg = EasyMock.createMockBuilder(SiteConfiguration.class).addMockedMethod("getHadoopConfiguration") - .withConstructor(AccumuloConfiguration.class).withArgs(DefaultConfiguration.getInstance()).createMock(); + SiteConfiguration siteCfg = EasyMock.createMockBuilder(SiteConfiguration.class).addMockedMethod("getHadoopConfiguration").createMock(); siteCfg.set(Property.INSTANCE_SECRET, "ignored"); http://git-wip-us.apache.org/repos/asf/accumulo/blob/de83e61c/shell/src/test/java/org/apache/accumulo/shell/ShellSetInstanceTest.java ---------------------------------------------------------------------- diff --git a/shell/src/test/java/org/apache/accumulo/shell/ShellSetInstanceTest.java b/shell/src/test/java/org/apache/accumulo/shell/ShellSetInstanceTest.java index 4041164..40f3442 100644 --- a/shell/src/test/java/org/apache/accumulo/shell/ShellSetInstanceTest.java +++ b/shell/src/test/java/org/apache/accumulo/shell/ShellSetInstanceTest.java @@ -56,10 +56,12 @@ import org.junit.Before; import org.junit.BeforeClass; import org.junit.Test; import org.junit.runner.RunWith; +import org.powermock.core.classloader.annotations.PowerMockIgnore; import org.powermock.core.classloader.annotations.PrepareForTest; import org.powermock.modules.junit4.PowerMockRunner; @RunWith(PowerMockRunner.class) +@PowerMockIgnore("javax.security.*") @PrepareForTest({Shell.class, ZooUtil.class, ConfigSanityCheck.class}) public class ShellSetInstanceTest { public static class TestOutputStream extends OutputStream {